holywyvern/carbuncle

View on GitHub
gems/carbuncle-gui/mrblib/color_picker.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Carbuncle
  class GUI
    class ColorPicker < GUI::Widget
      attr_accessor :color, :format

      def initialize(parent)
        super
        self.color = Color.new(255, 0, 0)
        self.format = GUI::RGBA
      end

      def update(_dt)
        gui.color_picker(color, format)
      end
    end
  end
end