Skip to content

first time using my own function, why wont the upper curve show?  #6049

@mogos1

Description

@mogos1

void setup() {
size(400,400);
frameRate(2);

}
void draw(){
background(20);
half (200,200);
}

void half (int x, int y) {

noStroke();

fill(#008EFF); //blue
bezier(x-100,y ,x-100,random(y-0,y-100) ,x+100,random(y-0,y-100) ,x+100,y); //CURVE_UP

fill(#FFFDC4); //yellow
bezier(x-100,y ,x-100,random(y+0,y+100) ,x+100,random(y+0,y+100) ,x+100,y); //CURVE_DOWN

fill(#D64123);
ellipse(x,y,10,10); //MIDDLE
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions