ui.gadgets.charts.lines: Fix using list.

Use ``SPECIALIZED-ARRAYS: float`` in order to create it if it doesnt exist.
factor-shell
Doug Coleman 2017-12-28 17:54:14 -08:00
parent fed7da34e2
commit fbe8d639d6
1 changed files with 6 additions and 5 deletions

View File

@ -2,13 +2,14 @@
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs binary-search colors.constants
combinators combinators.short-circuit fry kernel locals make
math math.order math.statistics math.vectors namespaces opengl
opengl.gl sequences
specialized-arrays.instances.alien.c-types.float
splitting.monotonic ui.gadgets ui.gadgets.charts
ui.gadgets.charts.utils ui.render ;
math math.order math.statistics math.vectors opengl opengl.gl
sequences specialized-arrays splitting.monotonic ui.gadgets
ui.gadgets.charts ui.gadgets.charts.utils ui.render ;
QUALIFIED-WITH: alien.c-types c
IN: ui.gadgets.charts.lines
SPECIALIZED-ARRAY: c:float
! Data must be a sequence of { x y } coordinates sorted by
! non-descending x vaues.
TUPLE: line < gadget color data ;