Code archives/Miscellaneous/Delete me

This code has been declared by its author to be Public Domain code.

Download source code

Delete me by Oiduts Studios2008
Thanks you
Moo

Comments

z80jim2008
doesn't seem to work... it keeps finding errors with your code.
When I was 12-13, I wrote my first finished program which also was a paint program lol. I can't seem to find it on the computer though, must have gotten deleted at some point :(


Rob Farley2008
I've just knocked this up which might help you a little

Graphics 1024,768,32,2

BrushSize = 20
Flow = 50

SetBuffer BackBuffer()

Dim Colours$(7)
Data "000","001","010","011","100","101","110","111"
For n=0 To 7
	Read colours(n)
Next
ColourNumber = 7


Repeat
	ColourNumber = ColourNumber + MouseZSpeed()
	If ColourNumber > 7 Then ColourNumber = 0 
	If ColourNumber < 0 Then ColourNumber = 7
	C$ = Colours(ColourNumber)
	R = Mid(C,1,1)
	G = Mid(C,2,1)
	B = Mid(C,3,1)
	Color R*255,G*255,B*255

	If MouseDown(1)
		For n=1 To Flow
			x = MouseX()
			y = MouseY()
			r = Rand(0,359)
			d = Rand(0,BrushSize)
			
			Plot x + (Sin(r) * d), y + (Cos(r) * d)
		Next
	EndIf
	

	Rect 1,1,48,10
	Color 255,255,255
	Rect 0,0,50,12,False
	
	Text 80,0,"Mouse Wheel to change Colour"
 
	
	Flip
Until KeyHit(1)
Any questions... Just ask


Yo! Wazzup?2008
Lol... I made my first make my paint program at 9, 10 now.

Here's the program:




z80jim2008
painting definitely is like the "hello world!" as in it makes a great first learning program :)


Code Archives Forum