Class: Neuro::Display::Output

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, ov, i, offsets) ⇒ Output

Returns a new instance of Output.



63
64
65
66
67
68
69
# File 'lib/neuro/display.rb', line 63

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