-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6acd829
commit b89fe27
Showing
9 changed files
with
33 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters