Category:Number pyramid Wisteria (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 Lonicera (image set).
v:Seal (discrete mathematics), v:Template:Seal pyramids Wisteria and Lonicera
top to bottom: arity 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, arity, cohort_weight, entry)
#if(depth = arity & arity = cohort_weight) // transparent 1s
#local Trans = .7;
#else
#local Trans = 0;
#end
#if(arity - depth = 7 ) // highlight
#local Color = srgbt <.95, 0, 0, Trans>;
#else
#local Color = srgbt <.25, .25, .25, Trans>;
#end
#declare px = cohort_weight;
#declare py = 8 - arity;
#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(0, 1, 0, 1)
put_number(0, 2, 0, 1)
put_number(0, 3, 0, 1)
put_number(0, 4, 0, 1)
put_number(0, 5, 0, 1)
put_number(0, 6, 0, 1)
put_number(0, 7, 0, 1)
put_number(1, 1, 1, 1)
put_number(1, 2, 0, 1)
put_number(1, 2, 1, 2)
put_number(1, 3, 0, 4)
put_number(1, 3, 1, 3)
put_number(1, 4, 0, 11)
put_number(1, 4, 1, 4)
put_number(1, 5, 0, 26)
put_number(1, 5, 1, 5)
put_number(1, 6, 0, 57)
put_number(1, 6, 1, 6)
put_number(1, 7, 0, 120)
put_number(1, 7, 1, 7)
put_number(2, 2, 2, 1)
put_number(2, 3, 0, 1)
put_number(2, 3, 1, 3)
put_number(2, 3, 2, 3)
put_number(2, 4, 0, 13)
put_number(2, 4, 1, 16)
put_number(2, 4, 2, 6)
put_number(2, 5, 0, 90)
put_number(2, 5, 1, 55)
put_number(2, 5, 2, 10)
put_number(2, 6, 0, 480)
put_number(2, 6, 1, 156)
put_number(2, 6, 2, 15)
put_number(2, 7, 0, 2247)
put_number(2, 7, 1, 399)
put_number(2, 7, 2, 21)
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, 4)
put_number(3, 5, 0, 40)
put_number(3, 5, 1, 65)
put_number(3, 5, 2, 40)
put_number(3, 5, 3, 10)
put_number(3, 6, 0, 670)
put_number(3, 6, 1, 540)
put_number(3, 6, 2, 165)
put_number(3, 6, 3, 20)
put_number(3, 7, 0, 7870)
put_number(3, 7, 1, 3360)
put_number(3, 7, 2, 546)
put_number(3, 7, 3, 35)
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, 5)
put_number(4, 6, 0, 121)
put_number(4, 6, 1, 240)
put_number(4, 6, 2, 195)
put_number(4, 6, 3, 80)
put_number(4, 6, 4, 15)
put_number(4, 7, 0, 4811)
put_number(4, 7, 1, 4690)
put_number(4, 7, 2, 1890)
put_number(4, 7, 3, 385)
put_number(4, 7, 4, 35)
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, 6)
put_number(5, 7, 0, 364)
put_number(5, 7, 1, 847)
put_number(5, 7, 2, 840)
put_number(5, 7, 3, 455)
put_number(5, 7, 4, 140)
put_number(5, 7, 5, 21)
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, 7)
put_number(7, 7, 7, 1)
}
//////////////////////////// show
union{
object{Numbers}
object{LightSquares}
object{DarkSquares}
translate -<4, 4, 4>
}
// povray pyramid_wisteria.pov +ua +fn +W2500 +H2390
|
Subcategories
This category has the following 5 subcategories, out of 5 total.
Pages in category "Number pyramid Wisteria (image set)"
The following 2 pages are in this category, out of 2 total.
Media in category "Number pyramid Wisteria (image set)"
This category contains only the following file.
-
Number pyramid Wisteria.png 2,500 × 2,390; 366 KB