Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Simple spray-paint

Author
Message
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 23rd Apr 2005 08:31
Hi, I haven't been on in a little while
but now i am back again.... and made this o.k.....spray paint option, surely others can add colors btw



Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Apr 2005 10:27
cool, now change it so that the user can adjust the size of the spray dynamically.

PETA - People for the Eating of Tasty Animals
Ace Of Spades
20
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 23rd Apr 2005 12:11
Make it circle based rather than square based

Digitalmodr
Coder_David
[Apolloed ]
Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 23rd Apr 2005 18:03 Edited at: 23rd Apr 2005 18:05
@ appolloed yeh i was gonna do that but i am not sure how to make a circle not a square got any ideas?

@phaelax Am doing now

Digital Dragon
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location: ...
Posted: 23rd Apr 2005 18:24
update - I have now added colors and to double the size press right mouseclick and to go back down it is shift.
Enjoy


RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 23rd Apr 2005 21:33
You should probably make the size option all on the same device, so both buttons to add or subtract sizes should be on the keyboard. Other than that its pretty good. Try adding an undo function

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 24th Apr 2005 03:50
hmmm i think he is trying to make a function for a paint program not neccessarily a paint program but i could be wrong

also
i got a theory on how to make it circle based now then if only i could find a way to get pi but 3.14 should work

or well gave me a sec i hadnt looked at how to code actually worked
this may be a bit harder than thought

X-Patch x-patch.exe(gui):75% make.exe:5% x-patch.dll(runtime dll):0% developed on win xp home sp2
Ace Of Spades
20
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 24th Apr 2005 04:02 Edited at: 24th Apr 2005 04:13
Quote: "if only i could find a way to get pi"


http://3.141592653589793238462643383279502884197169399375105820974944592.com/

Digitalmodr
Coder_David
[Apolloed ]
Dark Flame
20
Years of Service
User Offline
Joined: 15th Feb 2005
Location: England
Posted: 24th Apr 2005 04:28
Quote: "http://3.141592653589793238462643383279502884197169399375105820974944592.com/"


That site is crazy!

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 24th Apr 2005 04:34
really who would waste a domain on that

and
i beleive that i have been stumped due to the way it works plus i do not know whats all behind the infamus circle and to even make a circle using only dots is hard it requires knowing sections and crap that is not even in my math book

maybe next year though

X-Patch x-patch.exe(gui):75% make.exe:5% x-patch.dll(runtime dll):0% developed on win xp home sp2
Ace Of Spades
20
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 24th Apr 2005 04:37
just do it like all pixel programs:



As apposed to:


Digitalmodr
Coder_David
[Apolloed ]
Xlaydos
21
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 27th May 2005 18:36
Sorry to revive this thread but i thought of a way to do circle based


`r = Radius
r = 10
Do

While Mouseclick() = 1
xyz_:
x# = rnd(r) - r
y# = rnd(r) - r
If sqrt((x# * x#) + (y# * y#)) > r then goto xyz_
Dot mousex() + x#,mousey() + y#
Endwhile

Loop

Login to post a reply

Server time is: 2025-05-16 07:20:13
Your offset time is: 2025-05-16 07:20:13