Advertisement
Guest User

Untitled

a guest
Nov 27th, 2020
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDScript 0.26 KB | None
  1. extends Panel
  2.  
  3. onready var diagram = get_parent().diagram
  4.  
  5. func _draw():
  6.     #SITES
  7.     for site in diagram.sites():
  8.         draw_circle(site.center(), 1.0, Color.gray)
  9.        
  10.     #BORDERS
  11.     for edge in diagram.edges():
  12.         draw_line(edge.start(), edge.end(), Color.antiquewhite)
Advertisement
RAW Paste Data Copied
Advertisement