RhythmGame/scripts/NotePainter.gd

8 lines
186 B
GDScript3
Raw Permalink Normal View History

extends Control
onready var viewport := $'%viewport'
2020-05-02 16:09:51 +09:30
func _draw():
draw_texture_rect(viewport.get_texture(), Rect2(Vector2.ZERO, rect_size), false)
# texture = viewport.get_texture()