Torus Knot

  scripts
  sprites
See inside
Notes and Credits

Come on, can we get this top loved?

MARIO STYLE COIN RACING GAME: https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/
https://scratch.mit.edu/projects/101432596/

Credit to @MrLog for the HSL->RGB script. Uses my 3D engine: https://scratch.mit.edu/projects/98174058/ Everything else is mine.

20/2: YES!!!!!1!!1!!!11 I DID Z SORTING :-DDDDDDD

LAGGY??!?!??!!?!?!??!?! GO HERE: phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191 phosphorus.github.io/#97892191
go to phosphorus.github.io/#97892191 because Phosphorus is a Scratch project player that works in JS; it's much faster

DON'T BERATE BECAUSE IT LAGS ON YOUR COMPUTER!!!!!!!!!!!!! >:CCCCCCCCCCCCCCCCCC

Drag to rotate. Move your mouse up to the top of the screen to change the variables. I would have done different colours, but a method with z sorting would be much too slow, so if it's all the same colour, you can't see which bit is rendered first, so it looks like the z values are sorted, which looks right. p and q can be anything, as long as they are rational numbers.

My favourite combination is when p=3 and q=7.

I got my idea from this: http://mathworld.wolfram.com/TorusKnot.html

This is the formula: http://cubeupload.com/im/iYarh5.png

Here are some nice patterns: [NOT ADDING ANY MORE]
p=3, q=7 @wizzwizz7 (me)
p=4, q=9 @leszpio
p=1, q=10 @DrDuctape, @nklvguko and @jean-pierre-scratch
p=2, q=8 @njb14
p=7, q=10 @Influenzi
p=5, q=3 @Turtle1331, @banana439monkey and @-Tilde
p=9, q=10 @failasian
p=5, q=1 @B0bopman
p=10, q=1 @DC45, @AM75424
p=4, q=3 @Firedrake969
p=5, q=8 @dagamer04
p=2, q=1 @thesourceofepicness
p=7, q=9 @RoloGamer
p=8, q=1 @jazzi2003
p=10, q=9 @-ahead-
p=1, q=3 @jean-pierre-scratch
p=1, q=6 @jean-pierre-scratch
p=10, q=7 @pumpkin88

Shared: 14 Feb 2016 Modified: 2 Apr 2016
Favorite this project 109
Love this project 149
Total views 1358
View the remix tree  1
  
More projects by wizzwizz7