   click: (world, args) -> world.send world.get('value')
 }
 
-exports.controls = body 
-  
+control_names = ["step", "run", "stop", "reset"]
+exports.controls = make_buttons(
+  'control',
+  control_names,
+  my.control,
+  (world, args) -> world.send world.get('value')
+)
 

    width: my_kind.size
    click: action
  }

body = make.columns 'controls', ["step", "run", "stop", "reset"]
body.padding = my.control.spacing

{my} = require '../my'
{make} = require './make'

make_buttons = (kind, items, my_kind, action) ->
  body = make.columns "#{name}s", items
  body.stroke = my.color.line
  body.padding = my_kind.padding
