Tyler Ben

Generation

generate functionTue, 01 Aug 2023

Make a basic binary star sim 2d in p5.js

// main.js function setup() { createCanvas(500, 500); background(0); } function draw() { background(0); point(0, 0); point(0, 500); point(500, 0); point(500, 500); point(250, 250); point(250, 50); point(250, 450); point(50, 250); point(450, 250); point(50, 50); point(50, 450); point(450, 50); point(450, 450); }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant