AndyObtiva/glimmer-dsl-libui

View on GitHub
examples/color_button2.rb

Summary

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

include Glimmer

window('color button', 240) {
  color_button { |cb|
    color :blue
    
    on_changed do
      rgba = cb.color
      p rgba
    end
  }
}.show