Creo que , por lo que he podido leer, el no ha “hecho” ninguna foto, ni tampoco son tantas imagenes como decis.
El creador del reloj hace referencia a 720 imagenes en total (hay que tener en cuenta las repeticiones)
Tambien dice que las imagenes ya las ha sacado hechas de otro usuario de flicker y ha usado un script en bash para crear todo el proceso.
Os pego el texto original:
. I started by combing Flickr for some good Nixie images. I found these by Flickr user erickanderson. (who built a great
Nixie clock and who graciously agreed to let me feature his photos here)
Of course I wasn’t going to sit and manually composite 720 images for the frame, so I broke out Processing and ripped Matt Mets’ original sketch for his clock to create this sketch: (Note, I did properly crop and normalize the images before sending them through this sketch)
Aqui podeis ver el video que le dio la idea para hacerse su particular “marquito”
NIXIE CLOCK
y aqui el codigo para generar las imagenes necesarias :
//Thanks to Matt Mets for the initial version of this, to which the code below
//bears only a passing resemblance…
//To use this sketch, you will need an image of all 10 digits (all equally
//sized and closely cropped) as well as a colon image and a blank spacer image.
//These must be in the Data directory in the sketch's directory
// Set these to match the resolution of your frame
int imageWidth = 480;
int imageHeight = 234;
//This array holds the names of the digit images
String] imagenames =
{ "zero.jpg", "one.jpg", "two.jpg", "three.jpg", "four.jpg", "five.jpg",
"six.jpg", "seven.jpg", "eight.jpg", "nine.jpg" };
String imageName = new String();
//This will hold the image objects for each digit
PImage] images = new PImage[10];
//This image will be added to the front and back of the clock
//image to pad it out to the size of the frame as defined at the top
PImage spacerImage;
//The colon image used to separate the hours from the minutes
PImage colonImage;
//The width of each digit. Generally you will take the width of your frame
//and divide by 5. (4 digits plus the colon) Since the colon will be much
//narrower, you will want to split the extra into the front and back
//padding. My frame is 480px which gives me 5 digits of 96px. I chose to
//make my colon 26px wide, leaving 70px. I then divided that in two to
//arrive at a 35px spacer front and back
int digitwidth = 96;
int colonwidth = 26;
int spacerwidth = 35;
int myInt, count=0;
void setup() {
//Populate the array of images using the image name array above
for (myInt = 0; myInt<10; myInt++){
images[myInt] = loadImage(imagenames[myInt]);
}
//load the non-digit images
spacerImage = loadImage("spacer.jpg");
colonImage = loadImage("dot.jpg");
imageMode(CORNER);
// Set Processing's screen to the size of the frame so the images won't
//be scaled by the frame, get blocky, take too long to load, etc. and
//give us all black bg/fill/stroke
size(imageWidth, imageHeight);
//You can use a different background color, but if your images are
//sized correctly, you shouldn't see it anyway
background(0);
stroke(0);
fill(0);
//Starts at 1:00 and works through to 12:59 - your clock will start at
//1:00 instead of 12:00 when first powered up
for( int hours = 1; hours < 13; hours++ ) {
for( int minutes = 0; minutes < 60; minutes++) {
// Clear the background by painting over it
background(0);
//Draw the first spacer image at the far left
image(spacerImage,0,0);
//Draw the colon in the middle
image(colonImage,spacerwidth+(digitwidth*2),0);
//Draw the second spacer at the far right
image(spacerImage,spacerwidth+colonwidth+(digitwidth*4),0);
//divide hours by 10 to get first digit, 0 or 1
image(images[hours/10],spacerwidth,0);
//mod hours by 10 to get second digit, 0-9
image(images[hours%10],spacerwidth+digitwidth,0);
//divide minutes by 10 to get first digit, 0-6
image(images[minutes/10], spacerwidth+colonwidth+(digitwidth*2), 0);
//mod minutes by 10 to get second digit, 0-9
image(images[minutes%10], spacerwidth+colonwidth+(digitwidth*3), 0);
// Write out an image file. My frame handleded >200 images/folder fine, so
//I removed the subfolder code, but you can enable it if you need.
//Note the ugly code that pads zeros into the imageName string and which
//should be done a different way with string formatting, but, hey, it was
//very early when I wrote this.
imageName="";
if(count < 1000){
imageName="0";
if(count < 100){
imageName = "00";
if (count < 10){
imageName = "000";
}
}
}
//Use this line if you need to break the images into 200/folder
// save(count/200 + "/" + imageName + count++ + ".jpg");
//This line saves the image as a jpg
save( "img/" + imageName + count++ + ".jpg");
}
}
}
Lo que SI me tiene intrigado como indicaba antes el compañero “Chulillo” es como poner en hora correctamente el marquito de marras, que pasa si se va la luz… ??¿?