Htmlpainting based on Black Square by Kazimir Malevich Completion Date: 1915 Style: Suprematism Genre: abstract painting Technique: html5 Material: canvas Dimensions: 106 x 106 px Gallery: Codepen.io
Created
March 25, 2014 20:33
-
-
Save tankred/9770748 to your computer and use it in GitHub Desktop.
A Pen by Tankred.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="malevich" width="492" height="531"></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var canvas = document.getElementById('malevich'); | |
var context = canvas.getContext('2d'); | |
context.beginPath(); | |
context.rect(56, 72, 395, 417); | |
context.fillStyle = '#050706'; | |
context.fill(); | |
context.lineWidth = 1; | |
context.strokeStyle = '#A5ABA1'; | |
context.stroke(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#malevich {background:#F0EFED;border:1px solid #E2E0E1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment