This is my discussion page :) Still under construction, but you can still leave messages.
Cygene (talk | contribs) 11:13, 6 September 2011 (UTC)

Hey Cygene! I didn't know you had a wiki :D thats cool.
Slinger (talk | contribs) 12:26, 8 September 2011 (UTC)
He got it at the same time you did. :P
I approved both of you. :P
Scimonster (talk | contribs) 13:55, 8 September 2011 (UTC)
LOL!
Slinger (talk | contribs) 05:05, 9 September 2011 (UTC)


Awesome Raycaster article!

Nice job cygene! I seriously can`t wait util its finished! (I`ll probably post another raycaster that works following your tutorial)
Slinger (talk | contribs) 17:08, 10 September 2011 (UTC)

Thanks :) Maybe finished next week or the week after that, you know with school and all.
Cygene (talk | contribs) 18:09, 10 September 2011 (UTC)
Yeah I know what you mean D: school is such a time waster
Slinger (talk | contribs) 10:40, 11 September 2011 (UTC)
Believe me, school is complete waste of valuable time which us kids will never get back.
Supersonic50 (talk | contribs) 07:26, 15 September 2011 (GMT)
I don't think your right :/ Think of yourself in your twenties and you don't know how to read. And I'm no kid.
Slinger (talk | contribs) 10:40, 15 September 2011 (UTC)
I agree. XD I waste too much time on Scratch TBH...
Scimonster (talk | contribs) 10:45, 11 September 2011 (UTC)
Yeah same XD after note: Darn i always forget the tiddles XD
Slinger (talk | contribs) 18:15, 11 September 2011 (UTC)
I used to call them tidles too lol. Now I say tildes. :P
Scimonster (talk | contribs) 18:36, 11 September 2011 (UTC)
What are they supposed to be called?
Slinger (talk | contribs) 18:45, 13 September 2011 (UTC)
Tildes.
Scimonster (talk | contribs) 19:05, 13 September 2011 (UTC)
Ok Thanks :D
Slinger (talk | contribs) 06:18, 14 September 2011 (UTC)
Supersonic50 messed up the sig, could someone please fix it?
Cygene (talk | contribs) 20:33, 15 September 2011 (UTC)
Better? :/
Scimonster (talk | contribs) 07:37, 16 September 2011 (UTC)
Slinger's sig is still out of place. It's supposed to be under "Yeah, I know what you..." while Supersonic 50's should be under "Believe me, school is complete waste of valuable time..."
Cygene (talk | contribs) 10:45, 16 September 2011 (UTC)

Welcome

Welcome to The Scratch Wiki! I am so glad that you have decided to help this wiki hold more info! :D If you ever need any help, you can ask me or anyone else. There are always useful tips here. I hope you have a good day! :)
ProgrammingFreak (talk | contribs) 18:25, 8 September 2011 (UTC)

Mandelbrot Set code

Here it is: (sorry, this was my first JS, so it's not well-formatted)

<canvas id="canvas" width="480" height="360"></canvas>
<script type="text/javascript">
//canvas setup
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var color
var zoomLev = 120
var navx = 0
var navy = 0
draw()
//drawing
function draw()
{
ctx.clearRect(0,0,480,360)
ctx.strokeRect(0,0,480,360)
var x = 0
var y = 0
var cx
var cr
var zx
var zr
var i
var p
var q
var o
var JJ = 0

for (p=0;p<=480;p=p+1)
{
for (q=0;q<=360;q=q+1)
{
cr = (p - 240)/zoomLev + navx
cx = (q - 180)/zoomLev + navy
zr = 0
zx = 0
i = 0
JJ = 0
for (i=0;i<=50;i=i+1)
{
o = zr
zr = cr + ((zr*zr)-(zx*zx))
zx = cx + 2*o*zx
JJ = JJ + 1
if (zr>2)
{
break;
}
}
if (zr<2) {color="rgba(0,0,0,1)"} else {color="rgba("+JJ*4+",0,0,1)"}
ctx.fillStyle=color
ctx.fillRect(p,q,1,1)
}
}
zoomLev = zoomLev * 1.5
}
</script>




<script type="text/javascript">
//mouse setup
function set(event)
{
navx = (navx) + (X-240)/zoomLev
navy = (navy) + (Y-180)/zoomLev
draw()
}
</script>



<script type="text/javascript">
//find mouse position
var X
var Y
function show_coords(event)
{
var x=event.clientX;
var y=event.clientY;
X=x
Y=y
//X is xPos
//Y is yPos
}
</script>
<body onmousemove="show_coords(event)" onmousedown="set(event)"></body>
<br>
Click somewhere to zoom into that region.


Hardmath123 (talk | contribs)

Wow Hardmath, pretty cool. But this isn't the place for it, unfortunately. :(
Oh, and why don't you have semi-colons after each JS line? And why is there stuff outside the body tag?
Scimonster (talk | contribs) 17:42, 1 October 2011 (UTC)
why not? I kind of asked for it. If it's not allowed, you can delete it, I got the code.
Cygene (talk | contribs) 18:02, 1 October 2011 (UTC)
I won't delete it, but you can read this to see why not.
Scimonster (talk | contribs) 10:03, 2 October 2011 (UTC)
OK :)
Cygene (talk | contribs) 11:52, 2 October 2011 (UTC)
This was the first JS I wrote. Sorry for any JS heresy (:P).
Hardmath123 (talk | contribs) 17:45, 2 October 2011 (UTC)
Oh, and if you want, I'll delete it.
Hardmath123 (talk | contribs) 17:48, 2 October 2011 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.