File:Pentominos 3x4x5.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Pentominos_3x4x5.png (480 × 360 pixels, file size: 65 KB, MIME type: image/png, looped, 13 frames, 13 s)

Note: Due to technical limitations, thumbnails of this file will not be animated.

Captions

Captions

Add a one-line explanation of what this file represents
Description Filling a 3x4x5 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 <1,2,2>
	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 TRANSP = .5;

#declare LAYERS = 4;
#declare COLS = 5;
#declare ROWS = 3;

//Mapping: F->0 I->1 L->2 N->3 P->4 T->5
//         U->6 V->7 W->8 X->9 Y->10 Z->11
#declare cubes = array[LAYERS][ROWS][COLS]
{
 {
  {6,6,6,4,4},
  {1,1,1,1,1},
  {8,10,10,10,10}
 },
 {
  {6,0,6,4,4},
  {9,2,2,2,2},
  {8,8,10,11,11}
 },
 {
  {9,0,0,4,5},
  {9,2,5,5,5},
  {9,8,8,11,5}
 },
 {
  {0,0,7,7,7},
  {9,3,3,3,7},
  {3,3,11,11,7}
 }
}

#declare cube_cols = array[TNUM]
{
< 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>
}
//sequence: 6 1 0 9 4 2 10 8 5 11 7 3  
#declare order = array[TNUM]			//Which pieces show first?
{2, 1, 5, 11, 4, 8, 0, 10, 7, 3, 6, 9}

#declare lidx = 0;

#while (lidx < LAYERS)
	#declare ridx = 0;
	#while (ridx < ROWS)
		#declare cidx = 0;
		#while (cidx < COLS)

			#if (order[cubes[lidx][ridx][cidx]] < clock)
				object{cubo pigment {color rgbt cube_cols[cubes[lidx][ridx][cidx]]/255}
						translate y*lidx+x*ridx+z*cidx}
			#end
		#declare cidx = cidx +1;
		#end
	#declare ridx = ridx +1;
	#end
#declare lidx = lidx +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:
GNU head 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.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
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/TimeThumbnailDimensionsUserComment
current08:15, 16 April 2008Thumbnail for version as of 08:15, 16 April 2008480 × 360 (65 KB)Toobaz (talk | contribs){{Information |Description=Filling a 3x4x5 box with pentominos. Drawn with povray, (GPLed) source follows. |Source=self-made |Date= 16 Apr 2008 |Author= Toobaz |Permission=GFDL |other_versions= GIF version }

The following page uses this file: