Skip to content
This repository was archived by the owner on Aug 14, 2018. It is now read-only.
This repository was archived by the owner on Aug 14, 2018. It is now read-only.

curveVertex bug #48

Open
Open

Description

@yeatsJJ

Processing Android curveVertex bug,
the code is as follows:
fill(#FFEC8B);
beginShape();
curveVertex(0, 10);
curveVertex(0, 10);
curveVertex(100, 10);
curveVertex(100, 30);
curveVertex(0, 30);
curveVertex(0, 30);
endShape();

fill(#FFB6C1);
beginShape();
curveVertex(0, 50);
curveVertex(0, 50);
curveVertex(100, 50);
curveVertex(100, 80);
curveVertex(0, 80);
curveVertex(0, 80);
endShape();

The result is the color of the first shape will be the color of the second.
you can run it in android environment

Activity

  1. andyli commented on Oct 9, 2013

    @andyli

    I'm facing the same issue...

    My workaround is to switch to P3D (OpenGL) renderer, which does not contain the bug.
    size(width, height, P3D) will be ignored in Android mode, so we should instead include the following function in the sketch:

    String sketchRenderer(){
        return P3D;
    }
    
  2. yeatsJJ commented on Oct 10, 2013

    @yeatsJJ
    Author

    Thank U

  3. andyli commented on Oct 10, 2013

    @andyli

    You're welcome. But don't close this issue yet since there is definitely a bug in the 2D renderer. Please re-open.

  4. yeatsJJ commented on Nov 12, 2013

    @yeatsJJ
    Author

    now i found a new problem. if i write String sketchRenderer(){
    return P3D;
    }
    the result is a line from center to some point,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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