#! code<p>From the archive! Colour Sorting In PHP: Part 6</p><p>This the final part (so far) of a series of posts from <span class="h-card" translate="no"><a href="https://fosstodon.org/@philipnorton42" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>philipnorton42</span></a></span> about how to sort colours.</p><p>In this part Phil creates a very simplified 3D engine in PHP in order to show the RGB values of a number of colours in a 3D space, using the RBG values as coordinates in the scene.</p><p>This results in drawing a cube of colours and then rotating it to show the cube corner on.</p><p><a href="https://www.hashbangcode.com/article/colour-sorting-php-part-6" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">hashbangcode.com/article/colou</span><span class="invisible">r-sorting-php-part-6</span></a></p><p><a href="https://fosstodon.org/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://fosstodon.org/tags/colour" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>colour</span></a> <a href="https://fosstodon.org/tags/hashbangcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hashbangcode</span></a></p>