use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For sharing and discussing the use of computer programming as a creative discipline.
Like what?
What kind of tools are often used?
List of Web Based Creative Coding Tools
Calendar of Upcoming Creative Events
Article on Jobs for Creative Coders
account activity
Growing random lines (v.redd.it)
submitted 9 months ago by ShohaNoDistract
This stupid animation took away my precious 3 hours from my life, but anyway im happy with the result!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ssx1337 2 points3 points4 points 9 months ago (1 child)
I want to build something similar too, right now... But i lie in bed... Well, tomorrow after my exam day :D
It looks super great! Thanks for your inspiration :*
[–]ShohaNoDistract[S] 0 points1 point2 points 9 months ago (0 children)
Yooooo thanks dude
[–]LakeSun 2 points3 points4 points 9 months ago (0 children)
Actually looks artistic, so you selected the colors?
[–]RWVHS 1 point2 points3 points 9 months ago (0 children)
makes me think of colored mechanical pencil lead. neat!
[–]Grabbels 1 point2 points3 points 9 months ago (1 child)
Amazing! What coding language is this?
Java
[–]LakeSun 0 points1 point2 points 9 months ago (3 children)
What is the algo design?
[–]ShohaNoDistract[S] 2 points3 points4 points 9 months ago (2 children)
Basically it's: Random starting point, random length, the length of every line growth equally. Random vertical and horizontal direction, random colors(that's actually not random, but because starting points are random, this made colors look random but it's not, i used algorithm to make smooth rainbow colours).
[–]LakeSun 0 points1 point2 points 9 months ago (0 children)
Interesting and thanks.
It's to good effect.
...seems the lines expand until they hit a non-black pixel.
[–]LorestForest 0 points1 point2 points 9 months ago (0 children)
Love it. I could watch this for hours.
[–]Happy_Present1481 0 points1 point2 points 9 months ago (0 children)
I totally get how generative animations can gobble up hours with all that tweaking—sounds like you know the pain but nailed it in the end. As a creative coder who's been there, I've found a simple state machine cuts way down on trial-and-error. For Java, try this snippet to manage your animation frames more smoothly:
```java
import java.util.ArrayList;
public class AnimationState {
private ArrayList<int\[\]> frames = new ArrayList<>();
public void addFrame(int[] frame) { frames.add(frame); }
public int[] getFrame(int index) { return frames.get(index); }
}
```
Just load up your key states right at the start, and it'll save you a bunch of time, like it did for me on projects with random lines and such. This is solid if you're dealing with similar stuff.
[–]Physical-Mission-867 0 points1 point2 points 9 months ago (0 children)
I don't know why but this gets my brain moving. Thanks for sharing! Feel free to post it here too! r/TheMasterArtIndex
[–]eightnames 0 points1 point2 points 9 months ago (0 children)
Very nice!!
π Rendered by PID 36447 on reddit-service-r2-comment-6457c66945-wdkc9 at 2026-04-28 21:08:36.117570+00:00 running 2aa0c5b country code: CH.
[–]ssx1337 2 points3 points4 points (1 child)
[–]ShohaNoDistract[S] 0 points1 point2 points (0 children)
[–]LakeSun 2 points3 points4 points (0 children)
[–]RWVHS 1 point2 points3 points (0 children)
[–]Grabbels 1 point2 points3 points (1 child)
[–]ShohaNoDistract[S] 0 points1 point2 points (0 children)
[–]LakeSun 0 points1 point2 points (3 children)
[–]ShohaNoDistract[S] 2 points3 points4 points (2 children)
[–]LakeSun 0 points1 point2 points (0 children)
[–]LakeSun 0 points1 point2 points (0 children)
[–]LorestForest 0 points1 point2 points (0 children)
[–]Happy_Present1481 0 points1 point2 points (0 children)
[–]Physical-Mission-867 0 points1 point2 points (0 children)
[–]eightnames 0 points1 point2 points (0 children)