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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
debugging code for te ACS...
by
pascalbythree
[
Today
at 11:57:39 am]
Return nil/null of data t...
by
Khrys
[
Today
at 11:57:03 am]
UK's Online Safety Act
by
Joanna from IRC
[
Today
at 11:41:19 am]
Painting on a control - 3...
by
majolika
[
Today
at 10:56:33 am]
مشكلة في dbgrid
by
Gebo
[
Today
at 10:41:39 am]
مشكلة في التقارير
by
Gebo
[
Today
at 10:37:06 am]
TRichMemo: Popup menu not...
by
CM630
[
Today
at 09:57:53 am]
Getting format error load...
by
MISV
[
Today
at 08:42:52 am]
Generic methods inside a ...
by
Khrys
[
Today
at 07:13:28 am]
Compile on multiple distr...
by
dodgebros
[
Today
at 05:44:44 am]
Application.ProcessMessag...
by
440bx
[
Today
at 04:45:21 am]
SDL3 Headers for FPC
by
Guva
[
Today
at 04:05:01 am]
Does unit recompilation r...
by
Fred vS
[
Today
at 02:34:42 am]
Resolving procedure symbo...
by
TCH
[
Today
at 01:04:13 am]
Run ffmpeg via TProcess
by
TRon
[January 22, 2025, 10:52:55 pm]
Lazarus Bugfix Release 3....
by
Martin_fr
[January 22, 2025, 10:41:06 pm]
Lazarus Release Candidate...
by
zeljko
[January 22, 2025, 09:56:24 pm]
Minor Q: HowTo use 'Debug...
by
d7_2_laz
[January 22, 2025, 09:40:14 pm]
How C++ class multiple in...
by
Thaddy
[January 22, 2025, 07:55:26 pm]
Mormot2 and websocket cli...
by
BlueIcaro
[January 22, 2025, 07:25:35 pm]
crash db navigator with L...
by
calm_sea
[January 22, 2025, 06:04:33 pm]
Три вопроса новичка: OnPa...
by
majolika
[January 22, 2025, 05:30:20 pm]
Preparing FPC 3.2.4, poin...
by
BSaidus
[January 22, 2025, 04:19:20 pm]
Permuted index for RTL an...
by
Thaddy
[January 22, 2025, 03:52:14 pm]
My first "tool" written w...
by
TBMan
[January 22, 2025, 03:11:42 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Targeted Line Colouring and Filling (Read 884 times)
Boleeman
Hero Member
Posts: 768
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: 768
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: 768
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: 768
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: 768
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