Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anonPFP-SpeedyGo55 #881

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
55 changes: 55 additions & 0 deletions art/anonPFP-SpeedyGo55/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
@title: anonPFP
@author: SpeedyGo55
@snapshot: snapshot1.png
*/
const width = 125;
const height = 125;
const resolution = 0.5;
const x_offset = bt.randIntInRange(-20,20);
const y_offset = bt.randIntInRange(-20,20);

setDocDimensions(width, height);

function draw() {
let eye1 = new bt.Turtle();
let eye2 = new bt.Turtle();
let head = new bt.Turtle();
let body = new bt.Turtle();
let points = new bt.Turtle();

body.jump([12.5,0]);
body.forward(100);
body.left(90);
body.arc(180,50);

head.jump([width/2,40]);
head.arc(360,30);

let coveredBody = bt.cover(body.path, head.path);

eye1.jump([(width/2)-15,70 + 5*bt.randInRange(-3,3)]);
eye1.arc(360,5);

eye2.jump([(width/2)+15,70 + 5*bt.randInRange(-3,3)]);
eye2.arc(360,5);

drawLines(coveredBody);
drawLines(head.path);
drawLines(eye1.path);
drawLines(eye2.path);

for (let x = 0; x<=width; x+=resolution) {
for (let y = 0; y<=height; y+=resolution){
if (bt.pointInside(head.path, [x,y]) && !bt.pointInside(eye1.path, [x,y]) && !bt.pointInside(eye2.path, [x,y])){
if (bt.noise([x + x_offset, y + y_offset]) >= 0.5) {
points.jump([x,y]);
points.arc(360, 0.5);
}
}
}
}
drawLines(bt.simplify(points.path));
}

draw();
Binary file added art/anonPFP-SpeedyGo55/snapshots/snapshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/anonPFP-SpeedyGo55/snapshots/snapshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/anonPFP-SpeedyGo55/snapshots/snapshot3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading