Class: Neuro::Display::Input

Inherits:
CanvasGroup
  • Object
show all
Includes:
Draw
Defined in:
lib/neuro/display.rb

Constant Summary

Constants included from Draw

Draw::HEIGHT, Draw::LAYERS, Draw::WIDTH, Draw::XGAP, Draw::YGAP

Instance Method Summary collapse

Constructor Details

#initialize(root, iv, i, offsets) ⇒ Input

Returns a new instance of Input.



33
34
35
36
37
38
39
# File 'lib/neuro/display.rb', line 33

def initialize(root, iv, i, offsets)
  @i, @offsets = i, offsets
  @value = "%.3f" % iv
  x, y = position
  super(root, :x => x, :y => y)
  draw_text
end