Draw Curve in Small Basic


Small Basic doesn't have operations to draw curve.  But you can easily to draw a Bezier curve.

Today I'd like to show how to draw quadratic Bezier curve in Small Basic.

Quadratic Bezier curve needs three control points.  Click three control points with my demo program KJG712.  Then you can get drawing curve animation like following picutre.

Comments (9)

  1. This is cool. The program helps a ton as I read through your code.

    Thanks!

  2. anonymouscommenter says:

    nice prg nonki))

    added some features: KJG712-1

    -11 control points - or add as u wish by increasing var nct on line 4. always add at least 2 more points!

    -rightclick mouse menu-show/hide control points/lines

    -smooth option - press left ctrl while adding node

  3. Thanks qwx.  I rewrote your code to use only LitDev extension: KJG712-2.

    Press left or right Ctrl key for 4th, 6th, 8th and 10th points to draw smooth curve.

  4. I also published Curve 0.2: smallbasic.com/program .

    This version draws both quadratic and cubic Bezier curves.

  5. anonymouscommenter says:

    added object geneartion w mousewheel adjustments+rightclick menu

    FGV376

  6. anonymouscommenter says:

    new options and features:CNM204

    •ALT key makes selected node collinear - as option convert to line

    •CTRL makes blue node smooth - works from 4th node on every cyan marked node

    •Cyan nodes are middle ones

    •may be added max 200 nodes

    •text insert tool to make vectorizing sketch

  7. anonymouscommenter says:

    now added text on curve options: BXG803

  8. anonymouscommenter says:

    now new opts: LLP992

    •added text and font editing

    •text follow path angle

    •path hiding

    now u can unleash ur creativity...

  9. anonymouscommenter says:

    code: MDR865

    updated: main menu, reduced righclick menu, checkmarked options and copy as png file

Skip to main content