Class: Neuro::Display::Edges

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

Methods included from Draw

#position

Constructor Details

#initialize(root, nh, layer, i, offsets) ⇒ Edges

Returns a new instance of Edges.



124
125
126
127
128
# File 'lib/neuro/display.rb', line 124

def initialize(root, nh, layer, i, offsets)
  @nh, @layer, @i, @offsets = nh, layer, i, offsets
  super(root, :x => 0, :y => 0)
  draw_edges
end