That file is corrupt it seems.
In any case you can just upload the "org.alchemy.create.CreateModule-1.0.0.zip" file that is compiled.
And post the source here directly into the forum.
Karl DD wrote:That file is corrupt it seems.
In any case you can just upload the "org.alchemy.create.CreateModule-1.0.0.zip" file that is compiled.
And post the source here directly into the forum.
public CreateModule() {
p2 = new Point();
} protected void setup() {
p2 = new Point();
}canvas.getCurrentCreateShape().lineTo(p);protected void drawingCall(Point primaryPoint)
{
// the >>canvas.getCurrentCreateShape().lineTo(p);<<
// command is replaced by drawingCall()
// change for offset and randomness
int differBy = 30;
int randomness = 30;
//Creating point for second line
Point secondaryPoint = new Point();
secondaryPoint.x += primaryPoint.x + differBy + (int)math.random(-randomness,+randomness);//math.noise(differBy);
secondaryPoint.y += primaryPoint.y + differBy + (int)math.random(-randomness,+randomness);//math.noise(differBy);
//drawing shapes
// WARNING - THE FIRST TWO SHAPES IN CREATESHAPES ARRAY ARE DRAWN
canvas.createShapes.get(0).curveTo(primaryPoint);
canvas.createShapes.get(1).curveTo(secondaryPoint);
}
<library id="CreateModule" path="/" type="code">
<export prefix="*" />
</library>canvas.createShapes.get(0) != nullMichaelAquilina wrote:i've also been around on the forum and seen some rude comments about the undo feature. i have a solution
for the undo, unless you have come up with something already
Users browsing this forum: No registered users and 0 guests