Home WinSpy2 & SpyDrive2 ECFTP Eon Clash's Text File Monitor Resume Creation Suite EC LCD Editor XML Browser Lite TXMLParser for Delphi Treemap ECXML Parser for Lazarus pas2lua and lua for Delphi/FPC AVR GCC Deprecated Macros XMethods WSDL Browser Graphics 32 Image Editor Demo Using TPaintBox for annimations Maze Generation and Solving TSimpleMath JD Docking Components JDErrorLog JDImageButton Tile Joiner SDL, LUA, and Freepascal Game Engine Demo Simple Bezier Curve sample in Lazarus Recurisve Shadowmapping in FPC/Lazarus ATerm - ANSI Terminal Demo Simple Side Scroller Demo Source Generic Pascal Lua Library pLua (Lua wrapper for FPC, Lazarus, and Delphi) News Forums Jeremy's Resume Contact Us Bug Tracking JumpStart Game Engine Jeremy's Blog

Simple Bezier Curve sample in Lazarus

This is a very small and quick sample application showing how to calculate a Bezier Curve and then display it to a canvas in Lazarus. The BezierCurve.pas unit that is included should be usable in all versions of Lazarus, Free Pascal, and Delphi.

The unit includes methods to calculate 2D Integer Point Arrays, 2D Float Point Arrays, and 3D Float Point Arrays that represent the slice points of the Bezier Curve. You can pass in the number of points you want to utilize, and a default of 20 is supplied.

Click here to download
Text Link Ads