Code: Select all
' Palette as array
tomorrownight = [
rgb(67, 35, 146) ,
rgb(68, 115, 246),
rgb(236, 70, 195),
rgb(255, 179, 28),
rgb(255, 87, 80) ,
rgb(129, 40, 214)
]
' Single-line function to get a random array item
def randitem(myarray) = int(rnd*ubound(myarray))+1
' Get a random palette color
myColor = randitem(tomorrownight)
' Make art
drawWithColor(myColor)
Code: Select all
' Let's see, are these supposed to be returning Ulongs?
dim paletteAarray as Ulong =>
{
rgb(255,255,0),
rgb(23,23,0),
rgb(12,13,0)
}
Code: Select all
Expected expression in 'dim paletteAarray as Ulong =>'
Expected End-of-Line, found '{' in '{'
Invalid data types, found ',' in 'rgb(255,255,0),'
Invalid data types, found ',' in 'rgb(23,23,0),'
Invalid data types in 'rgb(12,13,0)'
Expected End-of-Line, found '}' in '}'