Sha256: 26c5f5a9b8c51c833352cad650a57c1aad28880fe56aaba38106d9bb39881282
Contents?: true
Size: 1.82 KB
Versions: 2
Compression:
Stored size: 1.82 KB
Contents
require 'glimmer-dsl-libui' include Glimmer window('Area Gallery', 400, 400) { area { path { # declarative stable path square { x 0 y 0 length 100 } square { x 100 y 100 length 400 } fill r: 102, g: 102, b: 204 } path { # declarative stable path rectangle { x 0 y 100 width 100 height 400 } rectangle { x 100 y 0 width 400 height 100 } fill r: 204, g: 102, b: 204 } path { # declarative stable path figure { x 100 y 100 line { x 100 y 400 } line { x 400 y 100 } line { x 400 y 400 } closed true } fill r: 202, g: 102, b: 104, a: 0.5 stroke r: 0, g: 0, b: 0 } path { # declarative stable path figure { x 0 y 0 bezier { c1_x 200 c1_y 100 c2_x 100 c2_y 200 end_x 400 end_y 100 } bezier { c1_x 300 c1_y 100 c2_x 100 c2_y 300 end_x 100 end_y 400 } bezier { c1_x 100 c1_y 300 c2_x 300 c2_y 100 end_x 400 end_y 400 } closed true } fill r: 202, g: 102, b: 204, a: 0.5 stroke thickness: 2, r: 0, g: 0, b: 0 } path { # declarative stable path arc { x_center 200 y_center 200 radius 90 start_angle 0 sweep 360 is_negative false } fill r: 202, g: 102, b: 204, a: 0.5 stroke thickness: 2, r: 0, g: 0, b: 0 } } }.show
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glimmer-dsl-libui-0.1.6 | examples/area_gallery2.rb |
glimmer-dsl-libui-0.1.5 | examples/area_gallery2.rb |