Hi
Ja, ja, ja...
One casuality!
Note: 4 years
Regards
Afaik turbo pascal 3 came with a turtle graph unit, but it was later deprecated in favor of a more modern Graph, the one that FPC provides.
The old one is known as "graph3"
Hi, lainz:
Many years ago, I used with TP3 and later with TP7.
Then I started with GW, QB, MSWLOGO, FMSLOGO and finally with FB.
Some examples are in YT, Xkrouhn
I like to program simply for hobby.
Hi lainz, great idea and a great JavaScript version! Back in the 90s as a kid I started to learn programming in school with turtle graphics, I think it must have been the Logo programming language (https://en.wikipedia.org/wiki/Logo_(programming_language)).
It is still a great concept to get kids (and adults, too) into programming, as you can see immediately the effect of your code and ideas.
Best regards,
Marc
Afaik turbo pascal 3 came with a turtle graph unit, but it was later deprecated in favor of a more modern Graph, the one that FPC provides.
The old one is known as "graph3"
Afaik turbo pascal 3 came with a turtle graph unit, but it was later deprecated in favor of a more modern Graph, the one that FPC provides.
The old one is known as "graph3"
TP3 is available for free here: http://edn.embarcadero.com/article/20792 You will need an account for the download and login first.
There is a good chance the turtle graph works, maybe just in TP mode on i8086 (dosbox), but maybe needs trunk for that.
I did not check. I have only TP 1.0 and TP 5.5 from the museum.
If you look at my code, you can see that move and rotate are implemented, color is just another property in bgrabitmap drawing, so it already works, try using that.
If you look at my code, you can see that move and rotate are implemented, color is just another property in bgrabitmap drawing, so it already works, try using that.
https://github.com/lainz/turtlegraphics
WOW, very impressive, fast and out-of-the-box.
Congrats.
If you look at my code, you can see that move and rotate are implemented, color is just another property in bgrabitmap drawing, so it already works, try using that.
https://github.com/lainz/turtlegraphics
WOW, very impressive, fast and out-of-the-box.
Congrats.
Thanks to @circular, he did the code, I grabbed it from somewhere in this big forum :)
Sure, keep hacking :)
If you look at my code, you can see that move and rotate are implemented, color is just another property in bgrabitmap drawing, so it already works, try using that.i have looked at your sample , it is very nice , but little complicated for beginners , if possible someone who is expert who make a component called turtle so we just give it the orders (move.rotate .....etc) same as in other programming languages .it would be great
Sure, keep hacking :)
OK, done!
The angle value is perfect to make it dance.
What is your advice to avoid flickering changing color?
I search for a way to changing smoothly the colors because jumping from red to blue for example gives a flickering effect.
Maybe step by step from one color to the other ?
If you look at my code, you can see that move and rotate are implemented, color is just another property in bgrabitmap drawing, so it already works, try using that.i have looked at your sample , it is very nice , but little complicated for beginners , if possible someone who is expert who make a component called turtle so we just give it the orders (move.rotate .....etc) same as in other programming languages .it would be great
thanks to all
Sure, keep hacking :)
OK, done!
The angle value is perfect to make it dance.
What is your advice to avoid flickering changing color?
I search for a way to changing smoothly the colors because jumping from red to blue for example gives a flickering effect.
Maybe step by step from one color to the other ?
Yes, store 2 colors and you can make a blend with a percentage I think, just can't remember how. :-[
Do the blending percentage over time.
i attached one component but it is in delphi, it use timage , and i attached link for the German page
yes it is much easier , you just give rotate,move,draw and it will be drawn on the image,please have a look on the attachment.
thanks
Sure, keep hacking :)
OK, done!
The angle value is perfect to make it dance.
What is your advice to avoid flickering changing color?
I search for a way to changing smoothly the colors because jumping from red to blue for example gives a flickering effect.
Maybe step by step from one color to the other ?
Yes, store 2 colors and you can make a blend with a percentage I think, just can't remember how. :-[
Do the blending percentage over time.
OK, thanks.
What I do for the moment is to vary the value of G, something like this:
set_color(Bitmap, 255, round(128*multiplier), 64, 255);
Of course if only gives a palette between yellow-orange and red.
There is no flickering.
It would be nice to switch to the colors of the rainbow.
But this is only detail, your code is "really" impressive (and totally hypnotic).
Thanks a lot.
Fre;D
For a percentage you can for example assign 30 and 70 for the weights (30 + 70
= 100)
i know conversion, could you put this and make new package so we can use it in any application?
p1, p2: TBGRAPixel;
begin
p2.Alpha := 100; // 99, 98, 97... when time passes by
MergeBGRA(p1, p2);Quote from: circularFor a percentage you can for example assign 30 and 70 for the weights (30 + 70
= 100)
So using the alternative version of the function..
Cool, I think I did the same, using 2 colors, one at the center :)
https://lainz.github.io/webapps/squiraltour/
i did already ,but when i put it on new application it doesn't work and the background is black , also not resizingi know conversion, could you put this and make new package so we can use it in any application?
Please create a demo on how to use it-
To create a package go to lazarus Packages > New package. Save it somewhere. Go to the package folder and copy and paste the uturtle.pas, then in the package viewer in lazarus use add files, and add uturtle.pas.
Then you can share it =)
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
Black text on yellow background ... ouch! ouch! :D