Category:Number pyramid Lonicera (image set)
Jump to navigation
Jump to search
This category is an image set. It should contain only images that have the same style, and should have a parent category that is purely topical.
See also category: Number pyramid Wisteria (image set).
v:Seal (discrete mathematics), v:Template:Seal pyramids Wisteria and Lonicera
top to bottom: adicity back to front: depth left to right: cohort weight
All indices go from 0 to 7.
POV-Ray source |
---|
#version 3.6;
global_settings { assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 conserve_energy}}
#include "colors.inc"
#declare Camera_Position = vnormalize(<13.2, 7.6, -45>) * 35;
camera{
orthographic
location Camera_Position
right x*image_width/image_height
angle 14.5
look_at <-.35, .57, 0>
}
light_source{ <-400, 500, -300> color White*0.9 shadowless}
light_source{ <400, 200, 100> color White*0.7 shadowless}
light_source{ Camera_Position color rgb<0.9,0.9,1>*0.3 shadowless}
sky_sphere{ pigment{ White } }
////////////////////////////////////////////////////////////////////////////////////// squares
#macro put_square(n, strong)
#if(strong)
#local Radius = .006;
#local ColorTuple = <.6, .6, .6, .5>;
#else
#local Radius = .005;
#local ColorTuple = <.9, .9, .9, .8>;
#end
union{
#for(i, 0, n)
cylinder{<1, 7-n, 7-i>, <n+1, 7-n, 7-i>, Radius}
#end
#for(i, 0, n)
cylinder{<i+1, 7-n, 7>, <i+1, 7-n, 7-n>, Radius}
#end
pigment{color srgbt ColorTuple}
}
#end
#declare LightSquares = union{
#for(n, 1, 7)
put_square(n, false)
#end
translate <-1, 1, 1>
}
#declare DarkSquares = union{
#for(n, 1, 6)
put_square(n, true)
#end
translate <-1, 0, 1>
}
////////////////////////////////////////////////////////////////////////////////////// numbers
#declare TextScale = .20;
#declare TextDepth = .075;
#declare FontPath = "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf";
#macro put_number(depth, adicity, cohort_weight, entry)
#if(depth = adicity & adicity = cohort_weight) // transparent 1s
#local Trans = .7;
#else
#local Trans = 0;
#end
#if(adicity - depth = 6) // highlight
#local Color = srgbt <.95, 0, 0, Trans>;
#else
#local Color = srgbt <.25, .25, .25, Trans>;
#end
#declare px = cohort_weight;
#declare py = 8 - adicity;
#declare pz = 8 - depth;
#local TextObject = text{ttf FontPath, str(entry, 0, 0), TextDepth, 0 scale TextScale}
object{
TextObject
translate -x * ( max_extent(TextObject).x - min_extent(TextObject).x ) / 2
pigment{color Color}
translate <px - .01, py - .07, pz - .02>
}
#end
#declare Numbers = union{
put_number(0, 0, 0, 1)
put_number(1, 1, 1, 1)
put_number(1, 2, 0, 1)
put_number(1, 2, 1, 1)
put_number(1, 3, 0, 3)
put_number(1, 3, 1, 1)
put_number(1, 4, 0, 7)
put_number(1, 4, 1, 1)
put_number(1, 5, 0, 15)
put_number(1, 5, 1, 1)
put_number(1, 6, 0, 31)
put_number(1, 6, 1, 1)
put_number(1, 7, 0, 63)
put_number(1, 7, 1, 1)
put_number(2, 2, 2, 1)
put_number(2, 3, 0, 1)
put_number(2, 3, 1, 3)
put_number(2, 3, 2, 2)
put_number(2, 4, 0, 12)
put_number(2, 4, 1, 13)
put_number(2, 4, 2, 3)
put_number(2, 5, 0, 77)
put_number(2, 5, 1, 39)
put_number(2, 5, 2, 4)
put_number(2, 6, 0, 390)
put_number(2, 6, 1, 101)
put_number(2, 6, 2, 5)
put_number(2, 7, 0, 1767)
put_number(2, 7, 1, 243)
put_number(2, 7, 2, 6)
put_number(3, 3, 3, 1)
put_number(3, 4, 0, 1)
put_number(3, 4, 1, 4)
put_number(3, 4, 2, 6)
put_number(3, 4, 3, 3)
put_number(3, 5, 0, 39)
put_number(3, 5, 1, 61)
put_number(3, 5, 2, 34)
put_number(3, 5, 3, 6)
put_number(3, 6, 0, 630)
put_number(3, 6, 1, 475)
put_number(3, 6, 2, 125)
put_number(3, 6, 3, 10)
put_number(3, 7, 0, 7200)
put_number(3, 7, 1, 2820)
put_number(3, 7, 2, 381)
put_number(3, 7, 3, 15)
put_number(4, 4, 4, 1)
put_number(4, 5, 0, 1)
put_number(4, 5, 1, 5)
put_number(4, 5, 2, 10)
put_number(4, 5, 3, 10)
put_number(4, 5, 4, 4)
put_number(4, 6, 0, 120)
put_number(4, 6, 1, 235)
put_number(4, 6, 2, 185)
put_number(4, 6, 3, 70)
put_number(4, 6, 4, 10)
put_number(4, 7, 0, 4690)
put_number(4, 7, 1, 4450)
put_number(4, 7, 2, 1695)
put_number(4, 7, 3, 305)
put_number(4, 7, 4, 20)
put_number(5, 5, 5, 1)
put_number(5, 6, 0, 1)
put_number(5, 6, 1, 6)
put_number(5, 6, 2, 15)
put_number(5, 6, 3, 20)
put_number(5, 6, 4, 15)
put_number(5, 6, 5, 5)
put_number(5, 7, 0, 363)
put_number(5, 7, 1, 841)
put_number(5, 7, 2, 825)
put_number(5, 7, 3, 435)
put_number(5, 7, 4, 125)
put_number(5, 7, 5, 15)
put_number(6, 6, 6, 1)
put_number(6, 7, 0, 1)
put_number(6, 7, 1, 7)
put_number(6, 7, 2, 21)
put_number(6, 7, 3, 35)
put_number(6, 7, 4, 35)
put_number(6, 7, 5, 21)
put_number(6, 7, 6, 6)
put_number(7, 7, 7, 1)
}
//////////////////////////// show
union{
object{Numbers}
object{LightSquares}
object{DarkSquares}
translate -<4, 4, 4>
}
// povray pyramid_lonicera.pov +ua +fn +W2500 +H2390
|
Subcategories
This category has the following 5 subcategories, out of 5 total.
Pages in category "Number pyramid Lonicera (image set)"
The following 2 pages are in this category, out of 2 total.
Media in category "Number pyramid Lonicera (image set)"
This category contains only the following file.
-
Number pyramid Lonicera.png 2,500 × 2,390; 361 KB