-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affects: io7m-com/.github#2
- Loading branch information
Showing
16 changed files
with
90 additions
and
602 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
## jptbox | ||
|
||
Java functions to draw Unicode boxes. | ||
|
||
## Features | ||
|
||
* Functions for drawing boxes. | ||
* High coverage test suite. | ||
* [OSGi-ready](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* ISC license. | ||
|
||
## Usage | ||
|
||
Create a text image to act as a canvas, and then draw boxes into it: | ||
|
||
``` | ||
final JPTextImageType image = | ||
JPTextImage.create(80, 10); | ||
final JPTextBoxDrawingType draw = | ||
JPTextBoxDrawing.get(); | ||
|
||
draw.drawBox(image, 0, 0, 30, 3); | ||
draw.drawBox(image, 29, 0, 10, 3); | ||
draw.drawBox(image, 38, 0, 10, 3); | ||
|
||
draw.drawBox(image, 0, 2, 30, 3); | ||
draw.drawBox(image, 29, 2, 10, 3); | ||
draw.drawBox(image, 38, 2, 10, 3); | ||
|
||
System.out.println(JPTextImages.show(image)); | ||
``` | ||
|
||
``` | ||
┌────────────────────────────┬────────┬────────┐ | ||
│ │ │ │ | ||
├────────────────────────────┼────────┼────────┤ | ||
│ │ │ │ | ||
└────────────────────────────┴────────┴────────┘ | ||
``` |
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
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
com.io7m.jptbox.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
com.io7m.jptbox.documentation/src/main/java/com/io7m/jptbox/documentation/Documentation.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.