Skip to content

Commit

Permalink
Dist changes
Browse files Browse the repository at this point in the history
  • Loading branch information
garciadelcastillo committed May 15, 2017
1 parent 6acd829 commit b89fe27
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/bin/

# Don't version all dev distros
distribution
tmp
2 changes: 1 addition & 1 deletion .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
eclipse.preferences.version=1
encoding//src/garciadelcastillo/dashedlines/Dasher.java=UTF-8
encoding//src/garciadelcastillo/dashedlines/DashedLines.java=UTF-8
Binary file modified distribution/dashedlines-1/download/dashedlines-1.zip
Binary file not shown.
Binary file modified distribution/dashedlines-1/download/dashedlines.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dashedlines.*;
import garciadelcastillo.dashedlines.*;

Dasher dash;

Expand All @@ -7,7 +7,6 @@ void setup() {

dash = new Dasher(this);

dash.pattern(10, 5, 2, 5);
}

void draw() {
Expand Down
24 changes: 0 additions & 24 deletions examples/Dash_01_Hello/Dash_01_Hello.pde

This file was deleted.

23 changes: 23 additions & 0 deletions examples/Dash_01_Hello_Dash/Dash_01_Hello_Dash.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

// Import the library
import garciadelcastillo.dashedlines.*;

// Declare the main DashedLines object
DashedLines dash;

void setup() {
// Initialize it, passing a reference to the current PApplet
dash = new DashedLines(this);

// Set the dash-gap pattern in pixels
dash.pattern(10, 5);
}

void draw() {
background(127);

// Call the line method of the 'dash' object,
// as if it was Processing's native
dash.line(10, 10, 90, 90);
dash.line(10, 90, 90, 10);
}
4 changes: 2 additions & 2 deletions src/dev/dev.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class dev extends PApplet {

Dasher dash;
DashedLines dash;

Node n1, n2, n3, n4;

Expand Down Expand Up @@ -45,7 +45,7 @@ public void setup() {
nodes[2 * i + 1] = new Node(this, dx + i * dx, 0.75f * height, 5);
}

dash = new Dasher(this);
dash = new DashedLines(this);
// dash.pattern(50, 10, 25, 10); // sets dash size and spacing in pixels
// dash.pattern(new float[] {});
// dash.pattern(50);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import processing.core.*;
import processing.data.*;

public class Dasher {
public class DashedLines {

protected final static String VERSION = "##library.prettyVersion##";
protected PApplet p;
Expand All @@ -21,7 +21,7 @@ public class Dasher {
*
* @param theParent
*/
public Dasher(PApplet theParent) {
public DashedLines(PApplet theParent) {
p = theParent;
g = p.getGraphics();
updateDashPatternLength();
Expand Down

0 comments on commit b89fe27

Please sign in to comment.