AndyObtiva/glimmer-dsl-libui

View on GitHub
examples/basic_area.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'glimmer-dsl-libui'

include Glimmer

window('Basic Area', 400, 400) {
  margined true
  
  area {
    rectangle(0, 0, 400, 400) { # stable implicit path shape, added declaratively
      fill r: 102, g: 102, b: 204, a: 1.0
    }
  }
}.show