File:Pentominos 2x3x10.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Pentominos_2x3x10.png (480 × 360 pixels, file size: 75 KB, MIME type: image/png, looped, 13 frames, 13 s)
Note: Due to technical limitations, thumbnails of this file will not be animated.
File information
Structured data
Captions
This image was created with POV-Ray.
DescriptionPentominos 2x3x10.png | Filling a 2x3x10 box with pentominos. Drawn with povray, (GPLed) source follows. |
Date | |
Source | Own work |
Author | Toobaz |
Permission (Reusing this file) |
GFDL |
Other versions | GIF version |
(GPLed) pov file:
#include "colors.inc"
global_settings { ambient_light rgb <10,10,10> }
camera {
location <100, 100, 100>
look_at <2,0,5>
angle 4
}
#declare radiantvertex = union{
cylinder{0, <0,0,1>, .02 pigment {colour White} }
cylinder{0, <0,1,0>, .02 pigment {colour White} }
cylinder{0, <1,0,0>, .02 pigment {colour White} }
}
#declare cubo = union
{
object{radiantvertex}
object{radiantvertex rotate x*180 translate y+z}
object{radiantvertex rotate y*180 translate x+z}
object{radiantvertex rotate z*180 translate x+y}
box { 0, 1 }
}
#declare TNUM = 12;
#declare OSITY = 5;
#declare TRANSP = .5;
#declare cubestructs = array[TNUM][OSITY] //Structures (cubes positions)
{
{x, y, x+y, x+2*y, 2*x+2*y}, //F
{0*y, y, 2*y, 3*y, 4*y}, //I
{0*y, x, y, 2*y, 3*y}, //L
{0*y, y, 2*y, x+2*y, x+3*y}, //N
{0*y, x, y, x+y, x+2*y}, //P
{x, x+y, x+2*y, 2*y, 2*x+2*y}, //T
{0*x, x, 2*x, y, 2*x+y}, //U
{0*x, x, 2*x, y, 2*y}, //V
{y, x, y+x, 2*x, 2*y}, //W
{x, y, x+y, x+2*y, 2*x+y}, //X
{x, x+y, x+2*y, x+3*y, 2*y}, //Y
{x, x+y, x+2*y, 2*x, 2*y} //Z
}
#declare pos_rot = array[TNUM][2] //Collocations (rotation, translation)
{
{<90,90,0>,3*z}, //F
{<90,0,0>,<1,1,4>}, //I
{<90,180,90>,<2,1,9>}, //L
{<-90,0,-90>,<0,1,6>}, //N
{<90,90,0>,z}, //P
{<90,90,0>,7*z}, //T
{<180,90,0>,<1,1,9>}, //U
{<90,0,0>,y-z}, //V
{<90,180,0>,3*x+5*z}, //W
{<90,0,0>,6*z}, //X
{<90,0,0>,<1,1,1>}, //Y
{<90,0,0>,y} //Z
}
#declare piece_cols = array[TNUM] //Colours (copied from Commons image)
{< 226, 246, 0>,//, TRANSP>,
< 29, 26, 216>,//, TRANSP>,
< 255, 93, 223>,//, TRANSP>,
< 3, 0, 255>,//, TRANSP>,
< 0, 225, 0>,//, TRANSP>,
< 0, 255, 236>,//, TRANSP>,
< 255, 0, 204>,//, TRANSP>,
< 0, 180, 165>,//, TRANSP>,
< 144, 238, 144>,//, TRANSP>,
< 255, 0, 3>,//, TRANSP>,
< 52, 6, 179>,//, TRANSP>,
< 179, 178, 6>,//, TRANSP>
}
#declare order = array[TNUM] //Which pieces show first?
{4, 0, 7, 3, 11, 8, 5, 10, 6, 9, 1, 2}
#declare extindex = 0;
#while (extindex < clock) //We pass all the pieces...
#if (extindex < TNUM) //... but we show only the first ones
#declare index = order[extindex];
union
{
#declare cubex = 0;
#while (cubex < OSITY)
object{
cubo translate cubestructs[index][cubex]
}
#declare cubex = cubex + 1;
#end
pigment {color rgbt piece_cols[index]/255}
rotate pos_rot[index][0] translate pos_rot[index][1]
}
#end
#declare extindex = extindex + 1;
#end
(GPLed) ini file:
; POV-Ray animation ini file Antialias=Off Antialias_Threshold=0.1 Antialias_Depth=2 Input_File_Name=polim.pov Initial_Frame=1 Final_Frame=13 Initial_Clock=1 Final_Clock=13 Cyclic_Animation=on Pause_when_Done=off
I, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 07:58, 16 April 2008 | 480 × 360 (75 KB) | Toobaz (talk | contribs) | {{Information |Description=Filling a 2x3x10 box with pentominos. Drawn with povray, (GPLed) source follows. |Source=self-made |Date= 16 Apr 2008 |Author= Toobaz |Permission=GFDL |other_versions= GIF version |
You cannot overwrite this file.
File usage on Commons
The following page uses this file: