Recent

Author Topic: My AGGPas examples  (Read 893 times)

Roland57

  • Hero Member
  • *****
  • Posts: 588
    • msegui.net
My AGGPas examples
« on: February 14, 2026, 08:17:53 pm »
Here are little examples that I made for learning AGGPas. They use the agg_2D unit (and fcl-image to create and save a PNG image). (There is also a fpGUI demo, using unit Agg2D.)

https://github.com/rchastain2/agg-examples

The examples collection is not finished. It's a first version. Contributions welcome!
My projects are on Codeberg.

cdbc

  • Hero Member
  • *****
  • Posts: 2687
    • http://www.cdbc.dk
Re: My AGGPas examples
« Reply #1 on: February 14, 2026, 09:38:34 pm »
Hi Roland
Looks great, will check out repo later on...
<off-topic>
I have seen your issue in my github/diary, haven't touched that in a long time, so I'll see what I can do about it and get back to you  8)
</off-topic>
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Graeme

  • Hero Member
  • *****
  • Posts: 1496
    • Graeme on the web
Re: My AGGPas examples
« Reply #2 on: February 15, 2026, 02:52:48 am »
Awesome Roland. You might also want to take a look at <fpgui>/examples/corelib/aggcanvas/

I have some low level aggpas rendering code in there too. Screenshot attached.

When you work directly with the AggPas api, the rendering pipeline is incredibly powerful (as the aggpas original examples show).  At one time I thought to change all fpGUI widgets to low-level aggpas rendering code, but that would make the learning curve for others wanting to create their own fpGUI widgets too hard. So I stuck to the Canvas class idea - which abstracts away most of the aggpas api.

Regards,
  Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Roland57

  • Hero Member
  • *****
  • Posts: 588
    • msegui.net
Re: My AGGPas examples
« Reply #3 on: February 17, 2026, 02:10:03 pm »
Thank you Graeme.

Added a clock example.
My projects are on Codeberg.

Roland57

  • Hero Member
  • *****
  • Posts: 588
    • msegui.net
PTC demo
« Reply #4 on: February 20, 2026, 11:08:52 am »
Added a PTC demo. It was very easy. Those two units (ptc and agg_2D) marry well together.
My projects are on Codeberg.

 

TinyPortal © 2005-2018