<?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>visualisation | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/category/visualisation/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Fri, 19 Feb 2021 10:42:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>visualisation | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Approaching the first year anniversary</title>
		<link>https://learncgames.com/approaching-the-first-year-anniversary/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=approaching-the-first-year-anniversary</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Tue, 23 Feb 2021 00:00:51 +0000</pubDate>
				<category><![CDATA[visualisation]]></category>
		<category><![CDATA[skyline]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2722</guid>

					<description><![CDATA[<p>In answer to an email I received, yes I do write all of the blog entries, tutorials and curate the collections on here. This will be blog #365 published since Feb 29th 2020.  You can see links to all posts by moving your mouse over the About Me in the top menu. The odd looking [&#8230;]</p>
The post <a href="https://learncgames.com/approaching-the-first-year-anniversary/">Approaching the first year anniversary</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:150,&quot;href&quot;:&quot;https:\/\/skyline.github.com\/david-h-bolton\/2020&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20220627232950\/https:\/\/skyline.github.com\/david-h-bolton\/2020&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:20:33&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-18 17:08:01&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-28 06:35:54&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-06 15:10:31&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-12 00:31:52&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-16 18:23:31&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-20 01:17:06&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-24 20:51:07&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-01 01:26:10&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-05 09:40:04&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-11 13:16:42&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-14 16:20:55&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-14 16:20:55&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:151,&quot;href&quot;:&quot;https:\/\/skyline.github.com&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206122315\/https:\/\/skyline.github.com\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-18 17:08:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 06:35:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-06 15:10:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 00:31:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-16 18:23:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-20 01:17:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 20:51:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-01 01:26:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-05 09:40:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 13:16:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 16:20:55&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-14 16:20:55&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_2723" aria-describedby="caption-attachment-2723" style="width: 300px" class="wp-caption alignleft"><img decoding="async" class="size-medium wp-image-2723" src="https://learncgames.com/wp-content/uploads/2021/02/skyline-Github-300x166.png" alt="Skyline for David-h-bolton on GitHub" width="300" height="166" srcset="https://learncgames.com/wp-content/uploads/2021/02/skyline-Github-300x166.png 300w, https://learncgames.com/wp-content/uploads/2021/02/skyline-Github-1024x566.png 1024w, https://learncgames.com/wp-content/uploads/2021/02/skyline-Github-768x425.png 768w, https://learncgames.com/wp-content/uploads/2021/02/skyline-Github.png 1206w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-2723" class="wp-caption-text"><a href="https://skyline.github.com/david-h-bolton/2020" target="_blank" rel="noopener">GitHub Skyline for David-H-Bolton in 2020</a></figcaption></figure>
<p>In answer to an email I received, yes I<strong> do write all of the blog entries, tutorials</strong> and curate the collections on here. This will be blog #365 published since Feb 29th 2020.  You can see links to all posts by moving your mouse over the <strong>About Me</strong> in the top menu.</p>
<p>The odd looking graphic is a thing that is running on GitHub called <a title="Link to Skyline on GitHub" href="https://skyline.github.com/" target="_blank" rel="nofollow noopener">Skyline</a>. It shows a 3D city like model generated from your GitHub commits.  Mine for 2020 is <a title="Link to my Skyline on GitHub for 2020" href="https://skyline.github.com/david-h-bolton/2020" target="_blank" rel="nofollow noopener">this</a> which you can zoom in and rotate, all with your mouse.  Just change the link to point to your account home page on GitHub. I think it&#8217;s quite neat and perfect timing for my first anniversary.</p>
<p>The slab I guess is a timeline from left to right and shows a visualisation of your commits by time period to different repositories. I have no doubts there are far more cluttered and complex skylines than mine!</p>The post <a href="https://learncgames.com/approaching-the-first-year-anniversary/">Approaching the first year anniversary</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2722</post-id>	</item>
		<item>
		<title>Interesting Visualisation &#8211; like tixy.land</title>
		<link>https://learncgames.com/interesting-visualisation-like-tixy-land/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=interesting-visualisation-like-tixy-land</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 15 Jan 2021 00:00:43 +0000</pubDate>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[visualisation]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2401</guid>

					<description><![CDATA[<p>If you remember tixy.land that I mentioned back in November last year, here is another website that lets you control a visualisation. In this case, tileflip.xyz lets you create a single function and applies it to every square on a board. You can control how many squares the board has and how often they are [&#8230;]</p>
The post <a href="https://learncgames.com/interesting-visualisation-like-tixy-land/">Interesting Visualisation – like tixy.land</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:250,&quot;href&quot;:&quot;https:\/\/tileflip.xyz\/#&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20210623151437\/https:\/\/tileflip.xyz\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 13:07:48&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-11 13:20:11&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-17 14:30:46&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-22 19:08:22&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-26 10:42:27&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-05 13:10:59&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-09 15:14:53&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-14 23:31:08&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-19 01:14:53&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-23 16:34:18&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-27 03:58:54&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-01 01:26:10&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-04 09:24:19&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-07 19:49:26&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-11 11:37:51&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-14 16:20:55&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-18 03:21:43&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-18 03:21:43&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:251,&quot;href&quot;:&quot;https:\/\/tileflip.xyz\/#\/help&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20210623151437\/https:\/\/tileflip.xyz\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 13:07:49&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-11 13:20:12&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-17 14:30:46&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-22 19:08:23&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-26 15:55:28&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-05 13:10:59&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-09 15:14:56&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-13 05:55:23&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-20 13:40:49&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-24 04:29:26&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-29 12:56:53&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-02 05:23:24&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-05 19:54:16&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-09 03:45:12&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-12 11:34:54&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-16 01:01:45&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-16 01:01:45&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft size-medium wp-image-2402" src="https://learncgames.com/wp-content/uploads/2021/01/tileflip-224x300.png" alt="Tileflip visualisation" width="224" height="300" srcset="https://learncgames.com/wp-content/uploads/2021/01/tileflip-224x300.png 224w, https://learncgames.com/wp-content/uploads/2021/01/tileflip.png 510w" sizes="(max-width: 224px) 100vw, 224px" />If you remember <a title="Link to blog post about Tixy.land" href="https://learncgames.com/so-much-fun-from-16-x-16-tixy-land/" target="_blank" rel="nofollow noopener">tixy.land</a> that I mentioned back in November last year, here is another website that lets you control a visualisation. In this case, <a title="Link to Tileflip.xyz" href="https://tileflip.xyz/#/" target="_blank" rel="nofollow noopener">tileflip.xyz</a> lets you create a single function and applies it to every square on a board. You can control how many squares the board has and how often they are updated through a pair of sliders. You can pause the animation and toggle squares by clicking on them in the mouse. One of the early examples runs Conway&#8217;s Life and has a really short function.</p>
<p>The functions can be quite complicated (<em>it&#8217;s JavaScript</em>) as this example shows which moves a ball around the screen while changing colours.</p>
<p>The ctx (<em>short for context</em>) object has various properties and functions that you can call on it. For example ctx.resolution is how many squares there are on the board and <a title="Link to tileflip help page" href="https://tileflip.xyz/#/help" target="_blank" rel="nofollow noopener">this page list</a>s all the properties and functions.</p>
<pre><code class="language-javascript" data-line="">function rule(ctx){
  
  ctx.color = ctx.floatToColor(10/ctx.t)
  
  let r = Math.min(ctx.t**2/10, ctx.resolution/4);
  let cx = ctx.t*2%(2*ctx.resolution+1);
  let cy = ctx.t*3%(2*ctx.resolution+1);

  
  if(cx &gt;= ctx.resolution+1){
    cx = 2*ctx.resolution - cx;
  }
  
  if(cy &gt;= ctx.resolution){
    cy = 2*ctx.resolution - cy;
  }
  
  cx = cx/(ctx.resolution)*(ctx.resolution-2*r+1)
  cx += r - 1;
  
  cy = cy/(ctx.resolution)*(ctx.resolution-2*r+1)
  cy += r - 1;
  
  let toReturn = inCircle(cx, cy, ctx.x, ctx.y, r);
  
  if(!toReturn){
    ctx.color = &#039;black&#039;
    ctx.invert = true;
  }
  
  return toReturn;
}

function inCircle(cx, cy, x, y, r){
  return (cx-x)**2 + (cy-y)**2 &lt; r**2 ? 1 : 0
}</code></pre>
<p>JavaScript is like C in many ways and while not the main purpose of LearnCGames.com, websites like this are an inspiration to games creators. My other interest is C# and I&#8217;m currently learning about Blazor a technology that lets you create webpages in C# using WebAssembly so it&#8217;s quite possible that things like this could be done in Blazor.</p>
<p>But it&#8217;s fun to look at the different example functions and you can also download the images as gifs via a link at the bottom of the page,</p>The post <a href="https://learncgames.com/interesting-visualisation-like-tixy-land/">Interesting Visualisation – like tixy.land</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2401</post-id>	</item>
	</channel>
</rss>
