-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
35 changed files
with
1,454 additions
and
997 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
Binary file not shown.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
REBOL [ | ||
Title: "REBOL Graphics - SHAPE commands" | ||
Name: shape | ||
Type: extension | ||
Exports: none | ||
; Run make-host-ext.r to convert | ||
] | ||
|
||
;don't change order of already defined words unless you know what you are doing | ||
|
||
words: [ | ||
;arc | ||
negative | ||
positive | ||
small | ||
large | ||
] | ||
|
||
;temp hack - will be removed later | ||
init-words: command [ | ||
words [block!] | ||
] | ||
|
||
init-words words | ||
|
||
;please alphabetize the order of commands so it easier to lookup things | ||
|
||
arc: command [ | ||
"Draws an elliptical arc from the current point." | ||
end-point [pair!] | ||
radius [pair!] | ||
angle [number!] | ||
'sweep-flag [word!] "The arc will be drawn in POSITIVE or NEGATIVE angle direction" | ||
'arc-flag [word!] "User SMALL or LARGE arc sweep" | ||
] | ||
|
||
arc': command [ | ||
"Draws an elliptical arc from the current point.(uses relative coordinates)" | ||
end-point [pair!] | ||
radius [pair!] | ||
angle [number!] | ||
'sweep-flag [word!] "The arc will be drawn in POSITIVE or NEGATIVE angle direction" | ||
'arc-flag [word!] "User SMALL or LARGE arc sweep" | ||
] | ||
|
||
close: command [ | ||
"Closes previously defined set of lines in the SHAPE block." | ||
] | ||
|
||
curv: command [ | ||
"Draws a cubic Bézier curve or polybézier using two points." | ||
points [block!] "Block of point pairs (2nd control point, end point)" | ||
] | ||
|
||
curv': command [ | ||
"Draws a cubic Bézier curve or polybézier using two points.(uses relative coordinates)" | ||
points [block!] "Block of point pairs (2nd control point, end point)" | ||
] | ||
|
||
curve: command [ | ||
"Draws a cubic Bézier curve or polybézier using three points." | ||
points [block!] "Block of point triplets (1st control point, 2nd control point, end point)" | ||
] | ||
|
||
curve': command [ | ||
"Draws a cubic Bézier curve or polybézier using three points.(uses relative coordinates)" | ||
points [block!] "Block of point triplets (1st control point, 2nd control point, end point)" | ||
] | ||
|
||
hline: command [ | ||
"Draws a horizontal line from the current point." | ||
end-x [number!] | ||
] | ||
|
||
hline': command [ | ||
"Draws a horizontal line from the current point.(uses relative coordinates)" | ||
end-x [number!] | ||
] | ||
|
||
line: command [ | ||
"Draws a line from the current point through the given points." | ||
points [pair! block!] | ||
] | ||
|
||
line': command [ | ||
"Draws a line from the current point through the given points.(uses relative coordinates)" | ||
points [pair! block!] | ||
] | ||
|
||
move: command [ | ||
"Set's the starting point for a new path without drawing anything." | ||
point [pair!] | ||
] | ||
|
||
move': command [ | ||
"Set's the starting point for a new path without drawing anything.(uses relative coordinates)" | ||
point [pair!] | ||
] | ||
|
||
qcurv: command [ | ||
"Draws a quadratic Bézier curve from the current point to end point." | ||
end-point [pair!] | ||
] | ||
|
||
qcurv': command [ | ||
"Draws a quadratic Bézier curve from the current point to end point.(uses relative coordinates)" | ||
end-point [pair!] | ||
] | ||
|
||
qcurve: command [ | ||
"Draws a quadratic Bézier curve using two points." | ||
points [block!] "Block of point pairs (control point, end point)" | ||
] | ||
|
||
qcurve': command [ | ||
"Draws a quadratic Bézier curve using two points.(uses relative coordinates)" | ||
points [block!] "Block of point pairs (control point, end point)" | ||
] | ||
|
||
vline: command [ | ||
"Draws a vertical line from the current point." | ||
end-y [number!] | ||
] | ||
|
||
vline': command [ | ||
"Draws a vertical line from the current point.(uses relative coordinates)" | ||
end-y [number!] | ||
] |
Oops, something went wrong.