TGC Codebase Backup



Psychadelic Lines by Galyxi

8th Sep 2005 9:41
Summary

Make Psychadelic patterns with multi-coloured lines



Description

Left click to make a starting point, then hold down the right mouse button to make patterns!



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    do
sync
	red=rnd(255)
   green=rnd(255)
   blue=rnd(255)
   ink RGB(red,green,blue),RGB(red,green,blue)
if mouseclick()=1 then x1#=mouseX():y1#=mouseY()
if mouseclick()=2 then x2#=mouseX():y2#=mouseY():line x1#,y1#,x2#,y2#
sync
loop