200byteDemoChallenge!

BlitzMax Forums/BlitzMax Programming/200byteDemoChallenge!

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Benyboy:

Nice effect!

Replace
Repeat Until KeyHit(27)

with
While KeyHit(27)=0 ;Wend
and condensing it to one line will shave some bytes (10 to be exact :) )

Here's my edits (I did some other edits too):
Graphics 640,480While KeyHit(27)=0;Cls;a:+1;SetColor 150,0,10*Sin(a)+50;SetBlend lightblend;SetLineWidth 5For i=1To 60DrawLine 500*Sin(i-(Cos(a)*50)),500*Sin(i-(Sin(a)*50)),500*Sin(i-(Sin(a)*50))+100,500*Cos(i-(Sin(a)*100))+100Next Flip;Wend

Total of 241 bytes :)