Skip to content
Sign upLog in
← Back to Community

colorful double helix

Profile icon
procoder165

was bored again in class so I decided to make this.

Voters
Profile icon
DarthEggo
Profile icon
ikumen
Profile icon
davidyu9
Profile icon
KadenAbasolo
Profile icon
AustinZhang1
Profile icon
AshCodz
Profile icon
SelenaYang1
Profile icon
RayvelArjoon
Profile icon
imnuex
Profile icon
DorshReal
Comments
hotnewtop
Profile icon
[deleted]

Nice! I can watch this for like 5 min straight.

Profile icon
DJWang

Boi this is awesome

Profile icon
[deleted]

very satisfying

Profile icon
Highwayman

Holy crap.

Profile icon
Foster_Bryant

this is epic

Profile icon
TheImagin33r

woa

Profile icon
RayvelArjoon
System.out.println('That\'s awesome!'); System.out.println('But JavaScript is waaaayyyyyyy cooler...');
Profile icon
[deleted]
System.out.println(‘All languages are cool!’);

@RayvelArjoon

Profile icon
RayvelArjoon

@CodeABC123
No one should be using Java because of how poorly made it is. JavaScript has better frameworks and can be easily linked to HTML and CSS files without problems. It takes a lot more time and it's stupid to use Java. You need another language if you're going to make proper graphics. I rest my case.

Profile icon
MatthewDoan1

@RayvelArjoon
What are you talking about? You're saying that JS can link to HTML and CSS. Oh WoW JaVaScRiPt Is A fRoNt-EnD cOdInG lAnGuAgE wHiLe jAvA iSn'T!!! Java is usually used for the back-end, so they are not comparable (in this case). Also, yes Java takes more time but that doesn't mean it's stupid. Python is quick-and-easy but I hate it because of its indentation policy. Also, this isn't even "proper graphics". This is just a fun little thing he made in the console. Tell me, what "proper" graphics can you do with JavaScript besides the web page? Java can be used with LWJGL, JavaFX, Slick2D, etc. for computer games. Also, you can make Android apps with Java. Meanwhile, here we are using JavaScript for what? Oh wow a text box can move omg so cool.

Profile icon
kingretracted

Hot :D

Profile icon
imnuex

I made something "similar":
https://repl.it/@imnuex/testing

Profile icon
pyplacca

Very cool

@imnuex

Why don't you use a single print function and set the sep keyword to '\n'. Like this;

print(arg1, arg2, ..., sep='\n')
Profile icon
imnuex

@pyplacca
or defining a function then using it as a loop.

Profile icon
pyplacca

@imnuex
but then, print still appears more than once for the same purpose. You need to keep the Don't Repeat Yourself principle in mind.
So you could write something like this;

def h(): print( '*'*6, '*'*5, '*'*4, '*'*3, '*'*2, '*'*1, '*'*1, '*'*2, '*'*3, '*'*4, '*'*5, '*'*6, sep='\n' ) while True: h()
Profile icon
imnuex

@pyplacca
I do remember the DRY principle.

Profile icon
Evanlicious

@imnuex
Hey, I made a shortening of your code if you want to see it. I made it more loop based, and I made it so it was not a function. I reduced the number of lines a bit too, not sure if it goes faster though.

https://repl.it/@Evanlicious/Revision-of-a-cool-thing

https://repl.it/@Evanlicious/Revision-of-a-cool-thing

Profile icon
imnuex

@Evanlicious
i mean, you can't calculate how much a computer takes to do something

Profile icon
Evanlicious

@imnuex
Sometimes there are ways, but yeah, you're probably right.

Profile icon
N3rdL0rd

EPICCCCCC!

Profile icon
AshCodz

Wow!

Profile icon
king2010

this thing confuses my mind
it turns from 2d to 3d 2d to 3d 2d to 3d ITS TOO CONFUSING but I love it

Profile icon
ELCerdito11

wait. are the two waves bouncing off each other or are they switching sides?

Profile icon
Cliffhanger58

this is cool

Profile icon
AtriDey

If you look closely, it's 3D and rotating.

Profile icon
Farshadow6277

great to watch,

Profile icon
KEOLAOTA

great man can you help me with mine https://repl.it/join/eqycumrm-keolaota

Profile icon
procoder165

@KEOLAOTA
i can help you out in java, i cant really do html that well

Profile icon
CosmoCat19

@KEOLAOTA
I can help you with html

Profile icon
CharlieBakerSBS

y

Profile icon
ChadLatny

very cool

Profile icon
SombreBatSoup

This is trippy! XD

Profile icon
ThePhoenixfish

Nice Job!
:D

Profile icon
Tylerdclark

Very cool! Do you have any suggested reading to learn about shell coloring?

Profile icon
kingretracted

<3

Profile icon
N3rdL0rd

Hypnotizing...😮

Profile icon
MrBoraY

very nice

Profile icon
Dart

Dope.

Profile icon
JeremyIrwin

mesmerizing

Profile icon
abbydebell

made this in Neon (boArD ToO LOL XD) check it out if u wanna :p
https://repl.it/join/qakcwdah-abbydebell

Profile icon
lellala

this is hypnotising. ITS GREAT! XD

Profile icon
ignacijus1

noice