Skip to content

Instantly share code, notes, and snippets.

@tankred
Last active October 19, 2020 13:41
Show Gist options
  • Save tankred/10776413 to your computer and use it in GitHub Desktop.
Save tankred/10776413 to your computer and use it in GitHub Desktop.
Whos-Afraid-of-RYB
<div id="container">
<canvas id="BarnettNewman" width="782" height="371"></canvas></div>
<!--
HTML5 painting based on:
Who's Afraid of Red, Yellow and Blue III
Artist: Barnett Newman (January 29, 1905 – July 4, 1970)
Who's Afraid of Red, Yellow and Blue III
Measuring 224 by 544 cm, this 1967 painting is part of the collection of the Stedelijk Museum in Amsterdam.
-->
var canvas = document.getElementById('BarnettNewman');
var context = canvas.getContext('2d');
context.beginPath();
context.rect(0, 0, 16, 371);
context.fillStyle = '#20234E';
context.fill();
context.lineWidth = 1;
context.strokeStyle = '#20253B';
context.stroke();
context.beginPath();
context.rect(780, 0, 2, 371);
context.fillStyle = '#C58E3C';
context.fill();
context.lineWidth = 1;
context.strokeStyle = '#CB832E';
context.stroke();
body{background:#6E6E6E;}
#container {width:782px;height:371px;margin:auto auto;border:1px solid #666;}
#BarnettNewman{background:#B72C15;border:0;}

Who's Afraid of Red, Yellow and Blue III

HTML5 painting based on: Who's Afraid of Red, Yellow and Blue III Artist: Barnett Newman (January 29, 1905 – July 4, 1970)

Who's Afraid of Red, Yellow and Blue III �Measuring 224 by 544 cm, this 1967 painting is part of the collection of the Stedelijk Museum in Amsterdam

A Pen by Tankred on CodePen.

License.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment