4 ms·
I guess this is a bug? https://postimg.cc/3drWBJm6 https://postimg.cc/3drWBJm6 I just edited the bouncing ball example and set "n = 200*200"
by tommica 4y ago
I guess this is a bug? https://postimg.cc/3drWBJm6 https://postimg.cc/3drWBJm6
I just edited the bouncing ball example and set "n = 200*200"
- tgv 4y agoThere's a limit to the number of colors. It almost certainly doesn't go up the 40k. Perhaps add a modulo operator to the color statement?
- jmmv 4y agoCorrect. They go up to 256. The numbers map to the "typical" X11 colors and the table is here: https://github.com/endbasic/endbasic/blob/ac3eb5622a6db0beb4161d88e883d692e20cda1d/std/src/console/colors.rs#L22 https://github.com/endbasic/endbasic/blob/ac3eb5622a6db0beb4... I've thought about adding other ways of specifying colors, like COLOR "#aabbcc". Would that be useful/interesting?
- tgv 4y agoPeople will like it, but i’d not use that format: it’s cumbersome. Instead, you could try eg. COLOR r,g,b Or add CSS like functions: COLOR rgba(…)