Sha256: 188b216095fc93f10cf76c5041c3a89e4975cbbed4328270ffcfb56dd57e7a1a

Contents?: true

Size: 222 Bytes

Versions: 21

Compression:

Stored size: 222 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.4.5 examples/color_button.rb
glimmer-dsl-libui-0.4.4 examples/color_button.rb
glimmer-dsl-libui-0.4.3 examples/color_button.rb
glimmer-dsl-libui-0.4.2 examples/color_button.rb
glimmer-dsl-libui-0.4.1 examples/color_button.rb
glimmer-dsl-libui-0.4.0 examples/color_button.rb
glimmer-dsl-libui-0.3.5 examples/color_button.rb
glimmer-dsl-libui-0.3.4 examples/color_button.rb
glimmer-dsl-libui-0.3.3 examples/color_button.rb
glimmer-dsl-libui-0.3.2 examples/color_button.rb
glimmer-dsl-libui-0.3.1 examples/color_button.rb
glimmer-dsl-libui-0.3.0 examples/color_button.rb
glimmer-dsl-libui-0.2.24 examples/color_button.rb
glimmer-dsl-libui-0.2.23 examples/color_button.rb
glimmer-dsl-libui-0.2.22 examples/color_button.rb
glimmer-dsl-libui-0.2.21 examples/color_button.rb
glimmer-dsl-libui-0.2.20 examples/color_button.rb
glimmer-dsl-libui-0.2.19 examples/color_button.rb
glimmer-dsl-libui-0.2.18 examples/color_button.rb
glimmer-dsl-libui-0.2.17 examples/color_button.rb