[Coco] New version of BGraph C library supports clipping, Catmull-Rom splines

Pierre Sarrazin sarrazip at sarrazip.com
Sun Feb 12 21:05:17 EST 2023


Hi. I have published a new version (0.1.7) of BGraph, a C graphics
library that offers functions similar to Basic's LINE, DRAW, PAINT and
CIRCLE commands. (It does not assume the presence of the Color Basic
interpreter. It is intended to be used with CMOC.)

BGraph now supports clipping lines on a rectangle, using the
Cohen-Sutherland algorithm.

It also supports drawing Catmull-Rom splines, as described in "Computer
Graphics: Principles and Practice" (by Foley, van Dam, Feiner, Hughes,
2nd Edition, pp. 483, 505).

A demo (cmdemo.bin) draws such curves, or lets the user place points
with the joystick and draws a curve through them. These functions do
not use floating-point arithmetic. See README.md for more information.

Details on the CMOC page, including a link to download a disk image:
http://sarrazip.com/dev/cmoc.html#bgraph

-- 
Pierre Sarrazin <sarrazip @ sarrazip . com>


More information about the Coco mailing list