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
Breakpoint dosn't work
by
Martin_fr
[
Today
at 03:55:08 pm]
SetLength fall
by
LemonParty
[
Today
at 03:29:35 pm]
Feature Request for TMapV...
by
EkkehardDomning
[
Today
at 03:23:27 pm]
TLazSerial : serial port ...
by
tetrastes
[
Today
at 02:15:26 pm]
[Solved] pointer to out o...
by
Joanna from IRC
[
Today
at 01:09:48 pm]
storing string
by
silvercoder70
[
Today
at 01:00:44 pm]
NSHapticFeedbackPerformer
by
Hansaplast
[
Today
at 12:25:49 pm]
Common File Dialogs Have ...
by
msintle
[
Today
at 12:25:24 pm]
The Silver Coder on YouTu...
by
silvercoder70
[
Today
at 11:45:36 am]
Type Library Viewer, Impo...
by
korba812
[
Today
at 11:39:38 am]
Developing a Kernel Modul...
by
MarkMLl
[
Today
at 11:21:12 am]
C operators and shift
by
Thaddy
[
Today
at 10:45:03 am]
Show Form at Top
by
CCRDude
[
Today
at 10:09:34 am]
ZDataset.Locate + loParti...
by
tintinux
[
Today
at 09:14:48 am]
Problem with Hints
by
Alexandr R
[
Today
at 08:20:29 am]
Storing line colors
by
Khrys
[
Today
at 07:51:29 am]
Use tts0, This example is...
by
Thaddy
[
Today
at 06:28:12 am]
Python4Lazarus Undefined ...
by
Jurassic Pork
[
Today
at 02:07:28 am]
Zaos Transliteration on l...
by
hamacker
[December 03, 2024, 11:12:53 pm]
[SOLVED] Howto use a DEFI...
by
PascalDragon
[December 03, 2024, 09:42:38 pm]
Random SnowFlakes:
by
Boleeman
[December 03, 2024, 09:07:14 pm]
AVRPascal – free code edi...
by
ackarwow
[December 03, 2024, 09:04:00 pm]
Secondary Installation fo...
by
TRon
[December 03, 2024, 08:21:03 pm]
Error when attempting to ...
by
dsiders
[December 03, 2024, 08:01:39 pm]
The Form cannot be resize...
by
daxnet
[December 03, 2024, 02:51:42 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Targeted Line Colouring and Filling (Read 840 times)
Boleeman
Hero Member
Posts: 715
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: 715
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: 715
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: 715
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: 715
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