Muted colors mmbasic

Hey picocalcers,

when i do something like

RGB(rnd*100,rnd*100,rnd*100)

the colors it outputs is quite muted how do i correctly select a random value from 0 to 255?

thanks

also are there any general tutorials on mmbasic?

INT(RND * 256)

Will result in a value 0 to 256.

There is a nice MMBASIC manual out there (I’m reading my copy right now). Just do some searches. It should be easy to find.

I wrote a little code to test colors.
And usually for random colors I do RGB(RND*255,RND*255,RND*255)

RGB screenshot

1 Like

“Talk is cheap. Show me the code.” - Linus Torvalds

:grin: