PHP Embroidery made in 2007
This piece was made in response to The Open Source Embroidery project initiated by Ele Carpenter.
The project combines programming and artistic skills. It shows that it is possible to paint with code.
Below is a reverse example of my interest in the aesthetics of technology. The painting was made three year prior to my involvement with the Open Source Embroidery project.
Modem cable 2004 Acrylic on canvas
It's a simple loop with in a loop, written in php, while I was in a coffee shop enjoying a 5 minute break from all things too serious. I did it because I could, it was fun, easy, in my imagination it was to be beautiful, and NOW it is.
In retrospect it looks more like a weaving than embroidery.
In retrospect it look more like a weaving than a embroidery.
The PHP embroidery currently featured as part of a touring exhibition of art works inspired by the open source embroidery project. The exhibition has been displayed at Access Space, Sheffield, UK, Sept - Nov, 2007, Http Gallery, London, 16 May - 15 June, 2008, HUMlab Syjunta HUMLab, Umea University, Sweden 24 - 30 January, 2009, BildMuseet, Sweden, opening June 7th, until September 6th, and The museum of Craft and Folk are in San Francisco.
If you would like to ammend the script below or write your own please send it to me at clark.iain@gmail.com and I will figure out a way to display it on this site.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PHP embroidery</title>
<style type="text/css">
<!--
html{height:100%}
body {
height:100%;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
body {font-size: 9px}
.style2 {font-size: 14px}
-->
</style>
<meta http-equiv="Refresh" content="1; url=http://www.iainclark.co.uk/embroidery/">
</head>
<body>
<?php
function rand_color() {
return substr('00000' . dechex(mt_rand(0, 0xffffff)), -6);
}
$randRows = rand(1,50);
$randCols = rand(1,80);
?>
<table border='0' cellspacing='0' cellpadding='0' align='center' width='<? print(rand(100,100)) ?>%' height='<? print(rand(100,100)) ?>%' style='margin:0px;'>
<?
for($i=0; $i < $randRows; $i++)
{
?>
<tr>
<?
for($i2=0; $i2< $randCols; $i2++)
{
?>
<td bgcolor='#<? print(rand_color())?>'> </td>
<? } ?>
</tr>
<? } ?>
</table>
</body>
</html>