i did already ,but when i put it on new application it doesn't work and the background is black , also not resizing
please modify the attachment and re-share it so everyone can get benefit of it
thanks
Hi, I've refactored my code so is more easy to use.
This is the unit
https://github.com/lainz/turtlegraphics/blob/master/bgraturtle.pasHow to use?
1) Install BGRABitmap and BGRAControls.
2) Drop a BGRAVirtualScreen.
3) Add BGRATurtle.pas in Uses.
4) Add OnRedraw event for BGRAVirtualScreen1.
5) Use the turtle methods in the OnRedraw event.
Methods?
Bitmap.MoveTurtle(distance: single);
Bitmap.RotateTurtle(angle: single);
Bitmap.TranslateTurtle(x: single; y: single);
Bitmap.ResetTurtle;
Bitmap.ColorTurtle(red, green, blue: byte; alpha: byte = 255);
Full demo:
https://github.com/lainz/turtlegraphics/blob/master/umain.pasIf you want to other people use my demo feel free to share it, it already works, so they need to only replace the code in the OnRedraw event. It has animation support, but you can disable it as well removing the timer code.