RGB HEX CUBE

Overview: "RGB CUBE" is a mesmerizing algorithmic creation that transforms the vast spectrum of web colors into a tangible, three-dimensional form. This digital masterpiece takes HEXadecimal color codes, which are essentially numerical representations of colors, and transforms them into a visually captivating experience that you can print, cut out, and fold into a cube. Here's a deeper dive into the inspiration and execution of this unique project:

HEXadecimal Color Codes: At its core, "RGB CUBE" revolves around the concept that HEXadecimal color codes are, in essence, just numbers. These numbers serve as a language through which we communicate with our screens, instructing them on which colors to display. The range of these numbers spans from 0 (00 00 00) to 16,777,215 (FF FF FF), encompassing a breathtaking array of colors. Online, we encounter these colors in the format of hashtags, like #F44CD7.

Exploring the Color Spectrum: The concept behind "RGB CUBE" was to methodically iterate through these colors (numbers) using a loop. This journey through the color spectrum takes into account the entire RGB color space. Instead of merely painting a flat canvas of colors, this project adds a dimension by generating a foldable cube. The result is a captivating and tactile representation of the color spectrum, inviting you to physically engage with the world of web colors.

Experience the RGB CUBE: You can experience the mesmerizing output of this algorithmic creation by visiting the following output.


OUTPUT

https://ibulla.com/rgb-algorithm-cube.php



https://ibulla.com/i/assets/img/rgb-cube-pdf.pdf


"RGB CUBE" is a testament to the fusion of art, mathematics, and interactivity. It transforms the abstract world of digital colors into a tangible, artistic experience, allowing you to hold and appreciate the full range of web colors in the palm of your hand. It's a celebration of the beauty and complexity hidden within the seemingly simple language of color codes.



WEBSEED

https://ibulla.com/x_stuff-Mai2012/rgb_cube.php



CODE

> result: https://ibulla.com/i/assets/scripts/rgb-hex-cube.php

<?php
/**
 * Project: RGB HEX CUBE
 * Author: Marco Spitzbarth
 * Date: 15. Mai, 2012
 * Website: https://ibulla.com/rgb-algorithm-cube.php
 * Description: create an rgb cube from 00 fo FF
 * Version: 1.0
 *
 * Copyright (c) 2012, Marco Spitzbarth
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

function RGB_CUBE($rgb){
  $printer = "<div class='bigbox'>";
    switch($rgb){
      case 0:
      for ($z=255; $z>=16; $z=$z-16){
      for ($x=255; $x>=16; $x=$x-16){
      $r = str_pad(dechex($z),2);
      $g = str_pad(dechex($x),2);
      $b = "00";
      $hex_color =$r.$g.$b;
      $printer.= "<div class='pixel' style='background-color:#".$hex_color.";'></div>";
      }}
      break;
      case 1:
      for ($z=255; $z>=16; $z=$z-16){
      for ($x=16; $x<=255; $x=$x+16){
      $r = str_pad(dechex($z),2);
      $g = "00";
      $b = str_pad(dechex($x),2);
      $hex_color =$r.$g.$b;
      $printer.= "<div class='pixel' style='background-color:#".$hex_color.";'></div>";
      }}
      break;
      case 2:
      for ($z=16; $z<=255; $z=$z+16){
      for ($x=255; $x>=16; $x=$x-16){
      $r = "00";
      $g = str_pad(dechex($x),2);
      $b = str_pad(dechex($z),2);
      $hex_color =$r.$g.$b;
      $printer.= "<div class='pixel' style='background-color:#".$hex_color.";'></div>";
      }}
      break;
    }
  $printer.= "</div>";
  return $printer;
}
$cube = "";
for ($i=0;$i<3;$i++){
  $cube.= "<div style='float:left;'>".RGB_CUBE($i)."</div>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RGB CUBE</title>
    <style>
        .bigbox {
            width: 315px; /* Set the body width to 800px */
            height: 315px;
            padding: 0px;
            margin: 0px;
        }
        .pixel {
            float: left;
            width: 20px;
            height: 20px;
            padding: 0px;
            overflow: auto;
            margin: 0px 1px 1px 0px;
        }
        .wrap{
          width: 630px;
        }
    </style>
</head>
<body>
  <div class="wrap">
    <?php
    echo $cube;
    ?>
  </div>
</body>
</html>

2012 | RGB HEX CUBE

HARTDURM
2025 | HARTDURM

Vernissage: Do, 23.10., 18-21 Uhr, Finissage mit Fondue: Sa, 15.11., 18-21 Uhr

OpenHouse25
2025 | OpenHouse25

Marco Spitzbarth zeigt aktuelle Arbeiten seines „künstlerischen Labors“ und lädt Besucher:innen abseits der Führungen ein, Teil seines Schaffensraums zu werden.

Einsichten25
2025 | Einsichten25

Über 220 Mitglieder der Visarte Zürich zeigen ihre aktuellen Werke an der diesjährigen Jahresausstellung.

Subroutines
2025 | Subroutines

Subroutines transforms algorithmic decision-making into visual form. Each print captures an environment shaped by countless micro-choices — and by a colored “agent”. Like in life, a single anomaly can ripple outward, rewriting the system it inhabits.

Continuum
2025 | Continuum

Artist Statement (iBulla, 2025)

FoxP2
2025 | FoxP2

Offener, einphasiger Kunst-am-Bau-Wettbewerb, Humboldt Forum - zeitgenössische Fassade am Nordgiebel

Baukrabbler
2025 | Baukrabbler

In Beton gegossen bewegen sie sich im Schatten der Baustelle

Glückskrabbler
2025 | Glückskrabbler

Der Legende nach schlummern unter der Erde Baugeister aus Eisen und Erz.

Sun Never Born
2025 | Sun Never Born

A meditation on the threshold between nature and synthesis—where the promise of a sun, yet to rise, lingers in the quiet code of creation.

UVA
2025 | UVA

UVA's journey in the deep space

Reorder Script
2025 | Reorder Script

Simple img src reorder helper html

Resonate Tissue
2025 | Resonate Tissue

An immersive installation that explores the interplay between organic forms and digital echoes. By merging tactile materials with sensor-driven feedback, “Resonate Tissue” invites viewers to reflect on the fluid boundaries between the physical body and technological resonance, underscoring our evolving relationship with the living and the virtual.

WeDoDraw
2025 | WeDoDraw

Explore the Hidden Narrative A drawing is never just a drawing. It’s a map. A signal. A story unfolding stroke by stroke. On wedodraw.com, algorithms reveal patterns. You create, watch, and discover.

Mobile Resistance
2024 | Mobile Resistance

The work transforms rigid reinforcing bars into mobile sculptures that traverse the urban space and challenge physical and metaphorical barriers through their precarious, adaptable presence.

Ai oder Ei
2024 | Ai oder Ei

Kurzer Comic über das goldene Ai

wedodraw.com
2024 | wedodraw.com

we do draw - do you?

Fighting Kangaroo v2
2023 | Fighting Kangaroo v2

New assembly plan and available online again

Op3nDays
2023 | Op3nDays

A series of talks and demonstrations organized to highlight the integration of “wedodraw” with a GRBL-driven machine. The event showcased creative drawing workflows, bridging open-source technology and artistic experimentation in a live, interactive setting.

King Kong
2023 | King Kong

Successful Unknown

Framework
2023 | Framework

a framework to manage ibulla.com on GitHub

Sudor Meta
2022 | Sudor Meta

Exhibition view

CryptoGoldNugget
2021 | CryptoGoldNugget

Series of 100 NFTs, ERC-721 Tokens

2 Geese
2021 | 2 Geese

The daily madness of two geese

The End of
2020 | The End of

the F***ing Internet

Pixelrun
2020 | Pixelrun

where pixels run to life

MicroTrainz.art
2020 | MicroTrainz.art

Upcycling Creativity for a big UFF

TokenTransformat.io
2019 | TokenTransformat.io

burn - transform - own

VeloGefahren.ch
2019 | VeloGefahren.ch

Empowering Safe Bicycling Through Crowd Intelligence

Blockexplorer.li
2019 | Blockexplorer.li

Unveiling the Story with Each Block

How Trump Are You?
2019 | How Trump Are You?

-

1milliondrawings.com
2019 | 1milliondrawings.com

-

TattooKurier.ch
2019 | TattooKurier.ch

-

TC 18
2018 | TC 18

Transcultural Collaboration: "Tanhua": A Tribute to the Global Workforce / "Mass Prey": The Abyss of Desire

def Algorithm():
2018 | def Algorithm():

printable booklet

Besenkammer
2018 | Besenkammer

no comment

1milliondrawings.com
2017 | 1milliondrawings.com

Draw your own NFT

Fighting Kangaroo
2017 | Fighting Kangaroo

Award-winning work

Private Coin Flip
2017 | Private Coin Flip

Generate your private Key with a coin

Base64 fun
2017 | Base64 fun

Ascii-Art Terminal Bash

How Trump Are You?
2016 | How Trump Are You?

Seriously, isn't that dangerous?

Useragent.icu
2016 | Useragent.icu

ipv4 / ipv6

Ayumu Memory
2016 | Ayumu Memory

Memory game

TattooKurier.ch
2015 | TattooKurier.ch

order your ink 24/7 wherever you are

Hex Flower Clock
2015 | Hex Flower Clock

some code fun

Addresses & Colors
2014 | Addresses & Colors

0.0.0.0 - 255.255.255.255: a comment on the conversion from ipv4 to ipv6

ibulla.com
2013 | ibulla.com

the archive

ipv6{start}
2012 | ipv6{start}

Your privacy is important (to us)

RGB Cube
2012 | RGB Cube

rgb hex cube code

mnēmōn
2011 | mnēmōn

fragments from a guestbook

Weinplatz7
2011 | Weinplatz7

Zwischennutzung

Hoja Blanca
2011 | Hoja Blanca

Zürich / Guatemala 26 Künstler/innen aus Guatemala und der Schweiz, 28x28cm

Daily Cut 2
2011 | Daily Cut 2

Collagen aus Zeitungspapier auf Leinwand und Acryl

mnēmōn
2010 | mnēmōn

fragments from a guestbook

Malzfabrik
2010 | Malzfabrik

Schweiztag in Berlin, Ausstellung 2010

Daily Cut
2010 | Daily Cut

Daily madness cut into pieces.

Buttons
2010 | Buttons

let's make some buttons

ABC
2010 | ABC

Cut. Mint. Reflect.

mnēmōn
2009 | mnēmōn

fragments from a guestbook

Basismarkt
2009 | Basismarkt

Open doors, open studio, christmas market

NDMAG
2009 | NDMAG

Noughty Design Magazine #1

Tiefgang
2009 | Tiefgang

Live Painting at “Tiefgang” with Raffle and Winner

mnēmōn
2008 | mnēmōn

fragments from a guestbook

Arizona
2008 | Arizona

Zur Arizona – Anfang und Ende einer Schaffensphase

mnēmōn
2007 | mnēmōn

fragments from a guestbook

Startkapital
2007 | Startkapital

Hardcover book, 170pages, black and white, fine liner on A4 paper

mnēmōn
2006 | mnēmōn

fragments from a guestbook

Burnout
2006 | Burnout

a 72-hour, sleepless performance in which I lived within a transparent polycarbonate box under constant public and online surveillance.

Chronotopes
2001 | Chronotopes

space-time markers

Millenium Bloom
2000 | Millenium Bloom

A watercolor-fineline-aquarelle

personal note
1999 | personal note

In the winter of 1999, my sister and I were in the lobby, sipping tea while a fierce snowstorm raged outside—so intense that skiing was out of the question.