// POVRAY description of button with national flag #include "ceiling-lights.inc" #include "background.inc" #declare empty = object{ sphere{ <0,0,0>, 0 } } #declare highlight_color = color rgb <1.00, 1.00, 1.00> // Name of button_texture_file, button_label_file: #include "button-parameters.inc" // Definition of button shape: #declare button_shape_HX = 33 - 0.9 #declare button_shape_HY = 8 #declare button_shape_HZ = 22 - 0.9 #declare button_shape_cap_HY = 4 #declare button_max_disp_Y = 0 #declare button_min_disp_Y = -16 #declare button_hole_clearance = 1.2 #include "superellipses.inc" #declare button_cyl = object{ super_cyl } #declare button_ball = object{ super_ball } #include "button-shape-simple.inc" // Definitions of button_relief, button_dugout, button_overlay, button_relief_HY: #declare button_label_font_scale = 20 #declare button_dugout_depth = 3 * button_shape_cap_HY #include button_label_file // Definition of button_plunger_texture: #include "button-texture-ppm.inc" #declare button_plunger_texture = texture{ button_texture } // Definition of button plunger: #include "button-plunger.inc" // Definition of button_hole, button_frame: #include "button-hole-simple.inc" // Definition of button_wall_texture, button_frame_texture: #declare matte_color = color bgColor #include "textures/matte.inc" #declare button_wall_texture = texture{ texture_matte } #declare button_frame_texture = texture{ texture_matte } // Definition of button_wall_hole_frame: #include "button-wall-hole-frame.inc" // Definitions of button_in, button_out #include "button-in-hole.inc" // btn_width_pixels should be odd. #declare btn_width_pixels = 33 #declare btn_height_pixels = 23 #declare pixel_size = (2*button_shape_HX)/btn_width_pixels // img_width_pixels, img_height_pixels should be integer and odd // and should divide the true image dimensions #declare img_left_margin_pixels = 6 #declare img_right_margin_pixels = 6 #declare img_top_margin_pixels = 3 #declare img_bot_margin_pixels = 7 #declare img_width_pixels = img_left_margin_pixels + btn_width_pixels + img_right_margin_pixels #declare img_height_pixels = img_top_margin_pixels + btn_height_pixels + img_bot_margin_pixels #debug "\n" #debug concat("img_width_pixels = ", str(img_width_pixels,1,0)) #debug "\n" #debug concat("img_height_pixels = ", str(img_height_pixels,1,0)) #debug "\n" #declare win_width = img_width_pixels * pixel_size #declare win_height = img_height_pixels * pixel_size #declare win_center_X = 00.00 #declare win_center_Y = 00.00 #declare win_center_Z = (img_top_margin_pixels - img_bot_margin_pixels)/2 * pixel_size #declare camDX = 00000.00 #declare camDY = +2000.00 #declare camDZ = 00000.00 #declare skyX = 0 #declare skyY = 0 #declare skyZ = 1