Skip to content

Instantly share code, notes, and snippets.

int i = 0, j =0, k =0, y=0, r, degreepoint = 0, d1, d2;
int angle1, point;
int radius1, radius2;
int diffValue;
void setup()
{
size(4000, 4000);
background(8, 65, 92);
noLoop();
float radius = 28*4;
float x, y, xt = 16, xto = xt, yt = 6, xt2 = xt+20, xto2 = xt2;
//float xt3 = 0, xto3 = xt3, yt3 = bottomCutOff-6;
float rightTriangleSideSaver = 0;
float rightTriangleSideSaver2 = 0;
float rightTriangleSideSaver3 = 0;
float topCutOff = yt;
int bottomCutOff = 35;
void setup()
float radius = 80;
float x, y, z;
void setup()
{
size( 1000, 1000 );
// background(201,206,189);
// strokeWeight( 1 );
fill(42, 42, 42);
float radius = 40;
float x, y, z;
float prevX, prevY;
void setup()
{
size( 700, 700 );
background( 0 );
stroke(255);
float pointNo = 100;
float stage = 0.0;
PVector point1;
PVector point2;
PVector point3;
PVector point4;
PVector point5, point6, point7, point8;
PVector l1mp, l2mp, l3mp, l4mp;
PVector l5mp, l6mp, l7mp, l8mp;
int fontSize = 260;
String str1 = "MUSE";
int circleLineSize = 21;
int distanceBetweenLines = 55;
PFont sourceLight;
int size = 0;
int stringLength = str1.length();
int pulse = 40;
PImage img1, img2, img3, img4, img5, img6, img7, img8, img9, img10, img11, img12, img13, img14, img15, img16;
float rotationCount = 0;
int countValue = 1;
int picSize;
static final color BG = -4;
void setup() {
size(800, 800);
frameRate(30);
PImage img1, img2, img3;
int rotationCount = 0;
int picSize;
static final color BG = -4;
void setup() {
size(500, 500, P3D);
// noSmooth();
// ((PGraphicsOpenGL)g).textureSampling(2);
img1 = loadImage("https://i.imgur.com/qNr33dN.png");
PImage img;
int xspacing = 1; // How far apart should each horizontal location be spaced
int w = 100, w2 = 150; // Width of entire wave
float theta = 0.0; // Start angle at 0
float theta2 = 0.0;
float amplitude = 3.0, amplitude2 = 12.0; // Height of wave
float period = 35, period2 = 150.0;// How many pixels before the wave repeats
float dx, dx2; // Value for incrementing X, a function of period and xspacing
float[] yvalues, yvalues2; // Using an array to store height values for the wave
//global variables
PImage img1, img2;
float x1, x2, y1, y2;
float angle1 = 0, angle2 = 25;
float scalar = 10;
float locationSave = height/2 + (scalar * sin(radians(angle1)));
static final color BG = -4;
void setup() {