chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] How to use bezier function in 2d-primitives?


From: Matt Welland
Subject: [Chicken-users] How to use bezier function in 2d-primitives?
Date: Tue, 24 Oct 2017 22:15:47 -0700

I tried this:

(use 2d-primitives)
(with-output-to-file "test.csv"
  (lambda ()
    (for-each
       (lambda (v)
          (print (f32vector-ref v 0)","(f32vector-ref v 1)))
    (bezier->vects (bezier:create (vect:create 0 0)(vect:create 2 5)(vect:create 7 5)(vect:create 10 0) 10))))

Then load test.csv into gnumeric and graph it and I see two straight line segments. Either I'm not correctly understanding how to use bezier or there is a bug.

Thanks,

Matt
-=-

reply via email to

[Prev in Thread] Current Thread [Next in Thread]