Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
Targeted Line Colouring and Filling
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Linked List Using Two Cla...
by
Thaddy
[
Today
at 03:25:28 pm]
The compiler fails to war...
by
Nicole
[
Today
at 03:23:25 pm]
How to prevent onDropFile...
by
cdbc
[
Today
at 03:09:19 pm]
Maze Makers: Now looking ...
by
Thaddy
[
Today
at 02:51:41 pm]
unit init, finalize and i...
by
Zvoni
[
Today
at 02:48:57 pm]
Embedded qss stylesheets ...
by
big_M
[
Today
at 01:01:30 pm]
Lazreport PDF
by
mig-31
[
Today
at 11:54:11 am]
Locate current record aft...
by
Zvoni
[
Today
at 09:59:08 am]
Drag and Drop Files; onDr...
by
Hansaplast
[
Today
at 09:39:25 am]
Lazarus and Libre Office
by
MarkMLl
[
Today
at 09:22:14 am]
CudaText editor (written ...
by
AlexTP
[
Today
at 08:51:13 am]
scat bikes (inc)
by
speter
[
Today
at 04:38:11 am]
Effect of adding properti...
by
n7800
[
Today
at 04:13:36 am]
solution for installing F...
by
BradleySlavik
[
Today
at 02:37:22 am]
Lazarus seems to be makin...
by
n7800
[
Today
at 02:33:42 am]
What was your first compu...
by
CM630
[January 13, 2026, 10:09:19 pm]
Dragging files to .app no...
by
Boleeman
[January 13, 2026, 10:06:09 pm]
PngDrop: Reduce the size ...
by
Boleeman
[January 13, 2026, 09:50:19 pm]
Fantasy Worldbuilder; Pro...
by
Boleeman
[January 13, 2026, 09:45:56 pm]
TSpeedButton qt6 styleshe...
by
big_M
[January 13, 2026, 09:23:24 pm]
StrToDateTime problems
by
Nicole
[January 13, 2026, 07:45:13 pm]
How to forward a Class in...
by
Hartmut
[January 13, 2026, 07:41:31 pm]
Additional Filedialog opt...
by
Hansaplast
[January 13, 2026, 07:39:28 pm]
set zero values not to b...
by
wp
[January 13, 2026, 05:58:41 pm]
Fast Canvas Library V1.05...
by
Gigatron
[January 13, 2026, 05:15:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Targeted Line Colouring and Filling (Read 1159 times)
Boleeman
Hero Member
Posts: 1072
Targeted Line Colouring and Filling
«
on:
February 12, 2024, 12:47:51 pm »
The 2nd Randomly Colored colourful tree that I created in the post (
https://forum.lazarus.freepascal.org/index.php/topic,66009.0.html
) got me thinking
"is there a way of filling to a certain level and line colouring to another recursive level" ?
My brain started brainstorming with some help of the triple brew coffee that I usually make, .... and after experimenting I came up with
"Yes it is possible"
I did not like the appearance of black and other random dark colours, so I thought
"Hmmm, Luminance threshold could be limited"
So here is one version of what I came up with.
And the story might continue, with some additional updates. I wonder what else could be achieved!
«
Last Edit: February 12, 2024, 12:50:21 pm by Boleeman
»
Logged
Boleeman
Hero Member
Posts: 1072
Re: Targeted Line Colouring and Filling
«
Reply #1 on:
February 12, 2024, 12:58:16 pm »
Spoiler ALERT.
Instead of random colors,
target a transition from
brown
to
green
.
Still have the fill happen to a certain recursive level, and non filling above those recursive levels.
This is what I mean of-course.
Logged
Boleeman
Hero Member
Posts: 1072
Re: Targeted Line Colouring and Filling
«
Reply #2 on:
February 14, 2024, 07:34:28 am »
My next step was to simulate new growth and possible blossoming by adding colour to just the tips of the tree.
Attached are some examples for both tree types (Randomly Coloured tree and Brown to Green tree).
The tips of the trees
were not always well pronounced, so I pondered on what else I could do !
«
Last Edit: February 14, 2024, 07:38:39 am by Boleeman
»
Logged
Boleeman
Hero Member
Posts: 1072
Re: Targeted Line Colouring and Filling
«
Reply #3 on:
February 14, 2024, 07:54:46 am »
My Solution was to vary the colour tip level, by
just colouring the last one, two or three recursion levels
.
So this is where I am at with this version of the Pythagoras Tree for Colouring and Filling !
Kinda like the added coloured tips effect.
Logged
Boleeman
Hero Member
Posts: 1072
Re: Targeted Line Colouring and Filling
«
Reply #4 on:
February 14, 2024, 08:17:20 am »
And a sample of the trees with Transparent background.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Graphics
(Moderator:
Ask
) »
Targeted Line Colouring and Filling
TinyPortal
© 2005-2018