In Monkey I had 255 colors of red. In Monkey 2 I only get 16 shades of red.
I have not been able to find how to enable more colors. I have been at it for a few hours now.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#Import "<std>" #Import "<mojo>" Using std.. Using mojo.. Class MyWindow Extends Window Method New() End Method Method OnRender( canvas:Canvas ) Override App.RequestRender() ' Activate this method For Local y:Float=0 To Height Step 1 canvas.Color = New Color(1.0/Height*y,0,0) canvas.DrawLine(0,y,Width,y) next ' if key escape then quit If Keyboard.KeyReleased(Key.Escape) Then App.Terminate() End Method End Class Function Main() New AppInstance New MyWindow App.Run() End Function |