<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming &#8211; Contre-Jour Art</title>
	<atom:link href="https://contre-jour.info/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://contre-jour.info</link>
	<description>by Karlo Walz</description>
	<lastBuildDate>Thu, 07 Aug 2025 01:11:03 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://contre-jour.info/wp-content/uploads/2016/08/cropped-cropped-Contre-Jour-2015-05-favicon-150x150.png</url>
	<title>Programming &#8211; Contre-Jour Art</title>
	<link>https://contre-jour.info</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CIELAB Color Space</title>
		<link>https://contre-jour.info/2025/08/cielab-color-space/</link>
		
		<dc:creator><![CDATA[Karlo]]></dc:creator>
		<pubDate>Wed, 06 Aug 2025 15:57:13 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[CIELAB]]></category>
		<category><![CDATA[Color Model]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">https://contre-jour.info/?p=7059</guid>

					<description><![CDATA[Because of my lack of satisfaction when I see programmable LED ART Projects, I was thinking a bit more about the colors used in any of the projects &#8211; my assumption and based on my [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Because of my lack of satisfaction when I see programmable LED ART Projects, I was thinking a bit more about the colors used in any of the projects &#8211; my assumption and based on my experience on my own projects.<br />
In my previous project about the &#8222;imperial temple of the light bugs&#8220; I used the color model <span data-huuid="4666084266642066935"> &#8211; HSV (Hue, Saturation, Value) color model. For the colors&#8216; determination, I used hue, while saturation and value was more given by circumstances within my model. The hue values pairs were the characteristics of each light bug individual. So I diced, using random(), these.<br />
Now if you use random on hue you get a bias to some colors as it prefers for example blue or red over orange and green.<br />
Even more, the models are also overusing high saturated colors instead of lower saturated colors and so on.<br />
So if you want your worked to become colorful in the sense of the colors of butterflies, you need to invest more time and energy into the color model.<br />
I digged a bit deeper, asking <a href="https://www.deepseek.com/">deepseek</a> and <a href="https://chatgpt.com/">chatgbt</a> about color models just to find out that there is already a perceptive color model which can be used (or might be good enough)<br />
<a href="https://en.wikipedia.org/wiki/CIELAB_color_space">CIELAB</a>. The idea behind this model is that it introduces a metric which gives you the physiological distance between colors as a number. This metric tells you if you can differentiate the colors at all with a number &lt;2 or if these are very away from each other &gt; 10.<br />
Also there are borders of perception integrated into this model which tells you if your perception stops at all even that the colors might be different as this is the horizon of your color impressions at all.</span></p>
<p>If you try to find then all colors in this model which are just about 2 away from each other you might get your physiological color map you might want and need to show all colors you can see.<br />
This is the granular element.<br />
On top of this you can then calculate the perceptive complement, split complement, triad, tetradic harmonies, the nearest neighbor and so on.<br />
The first step into this I have done now using JavaScript as the language as my IDE for programming can handle this very well (<a href="https://www.jetbrains.com/pycharm/">PYCHARM</a>) and with <a href="https://p5js.org/">p5.js</a> there is a very well setup library for the 3d presentation and integration into a webpage.</p>
<p>Finally I am currently happy with my results of having about 5000 colorpoints in the Lightness (L star), Green/Red Dimension (A star) and Blue / Yellow Dimension (b star).<br />
I am using the polar coordinates with Lightness, Chroma and Hue (CIELUV) which are just as mentioned a different mathematical description of the vectors in this 3 dimensional space.</p>
<p>For example the figure below where the L axis is pointing from lower left with white (non visible) to the viewer in black<br />
while you can see the colors in the plane with these 4 primary elements (blue and yellow, green and red).</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-medium wp-image-7202" src="https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-600x450.jpg" alt="" width="600" height="450" srcset="https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-600x450.jpg 600w, https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-2018x1514.jpg 2018w, https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-768x576.jpg 768w, https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-1536x1152.jpg 1536w, https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-2048x1536.jpg 2048w, https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-400x300.jpg 400w, https://contre-jour.info/wp-content/uploads/2025/08/IMG_9531-2-1920x1440.jpg 1920w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>the 3D model can be viewed in this page here.</p>
<p><a href="http://karlo-walz.de">Color Burn Art</a></p>
<p>A few words to the graphics. The lines between the dots is a chain from one color dot to the next available nearest neighbor and so in the end this is the full chain of all colors starting from black to the end with all its different flavours.<br />
I need to add a few more structural elements to this model, like real nearest neighbors.<br />
I should extend this to a proper class.. with all the function we wanna have to use this in our color art.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Fibonnaci(1000)</title>
		<link>https://contre-jour.info/2023/08/fibonnaci1000/</link>
		
		<dc:creator><![CDATA[Karlo]]></dc:creator>
		<pubDate>Sun, 20 Aug 2023 17:06:11 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[mathematic]]></category>
		<guid isPermaLink="false">https://contre-jour.info/?p=4522</guid>

					<description><![CDATA[26863810024485359386146727202142923967616609318986952340123175997617981700247881689338369654483356564191827856161443356312976673642210350324634850410377680367334151172899169723197082763985615764450078474174626 Let me quote the following with a good overview of what happened in italy at 1200 ac from https://www.i-programmer.info/news/85-humour-/15891-fibonacci-day-2022.html The man of the hour, or rather of the day, is Leonardo Bonacci one of [&#8230;]]]></description>
										<content:encoded><![CDATA[<pre>26863810024485359386146727202142923967616609318986952340123175997617981700247881689338369654483356564191827856161443356312976673642210350324634850410377680367334151172899169723197082763985615764450078474174626</pre>
<p>Let me quote the following with a good overview of what happened in italy at 1200 ac from<br />
<a href="https://www.i-programmer.info/news/85-humour-/15891-fibonacci-day-2022.html">https://www.i-programmer.info/news/85-humour-/15891-fibonacci-day-2022.html</a></p>
<pre>The man of the hour, or rather of the day, is Leonardo Bonacci one of the most prominent mathematicians of the Middle Ages. Son of an Italian merchant and customs official who ran a trading post in Bugia in modern day Algeria, Bonnaci was educated in Bugia where he learned about the Hindu-Arabic numeral system with its 10 digits (including 0) and place value system. So when as a young boy he travelled around the Mediterranean with his father, meeting merchants and observing their methods of doing arithmetic he appreciated its advantages over the Roman numerals still in use in Europe.
His first claim to fame is that in 1202, he completed the <i>Liber Abaci</i> (<i>Book of Abacus</i> or <i>The Book of Calculation</i>), which, written in Latin, popularized Hindu-Arabic numerals in Europe. The first translation of this book, one of the most important books in the history if European mathematics, into Modern English was made for the 800th anniversary of its original publication and it is regarded as a Best Seller on Amazon - see side panel.
As well as showing introducing numerals and their practical use in for example converting different currencies, and calculating profit and interest, the book also discussed irrational numbers and prime numbers. It also posed and solved a problem involving the growth of a population of rabbits:
<em>“A certain man put a pair of rabbits in a place surrounded by a wall. How many pairs of rabbits can be produced from that pair in a year if it is supposed that every month each pair begets a new pair from which the second month on becomes productive?”</em>
The solution, generation by generation, is the sequence of numbers we now refer to as Fibonacci numbers.
From the name you might assume he "invented them" but in fact the sequence had been described by Indian mathematicians as early as 200 BC in work by Pingala on enumerating possible patterns of Sanskrit poetry formed from syllables of two lengths. Wikipedia tells us that the name "Fibonacci", derived from "filo Bonacci" meaning "son of Bonacci"  was "made up in 1838 by the Franco-Italian historian Guillaume Libri" whereas during his lifetime Leonardo Bonacci was also known as "Leonardo Bigollo Pisano", Leonardo the traveller from Pisa.  
As well as modelling the population of rabbits, the Fibonacci sequence crops up time and time again in nature.
Petal arrangements in flowers, the ordering of leaves in plants, the shell of the nautilus, spirals in pineapples, the DNA molecule and even hurricanes show patterns that correspond to the sequence. In addition data storage and processing uses this number sequence and is also useful in the trading of stocks and architecture. 
After the first four numbers, the ratio of any number to its next highest number approaches 1.618, the <a href="https://en.wikipedia.org/wiki/Golden_ratio" target="_blank" rel="noopener">Golden Ratio</a> which, as well as being evident in the natural world, is prized in art and architecture -objects whose length and breadth exhibit the Golden Ratio are thought to be the most pleasing to the eye.
And to return to the question posed at the start, November 23 is Fibonacci day because when the date is written in the mm/dd format (11/23), the digits in the date form a Fibonacci sequence: 1,1,2,3. But you knew that already.</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
