charts.lines: add x and y aliases
parent
e645990eed
commit
e11cf1a60b
|
@ -16,6 +16,9 @@ TUPLE: line < gadget color data ;
|
||||||
: (line-vertices) ( seq -- vertices )
|
: (line-vertices) ( seq -- vertices )
|
||||||
concat [ 0.3 + ] float-array{ } map-as ;
|
concat [ 0.3 + ] float-array{ } map-as ;
|
||||||
|
|
||||||
|
ALIAS: x first
|
||||||
|
ALIAS: y second
|
||||||
|
|
||||||
: search-first ( elt seq -- index elt )
|
: search-first ( elt seq -- index elt )
|
||||||
[ first <=> ] with search ;
|
[ first <=> ] with search ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue