mirror of
https://github.com/Relintai/pandemonium_paint_experimental.git
synced 2024-11-07 16:52:10 +01:00
Use the current color for drawing.
This commit is contained in:
parent
6ac6df6e7d
commit
a58c95caaf
@ -4,7 +4,12 @@ extends PaintCanvas
|
||||
var _mouse_down : bool = false
|
||||
|
||||
func draw(local_position : Vector2) -> void:
|
||||
set_pixel(local_position.x, local_position.y, Color(1, 1, 1, 1))
|
||||
var proj : PaintProject = get_paint_project()
|
||||
|
||||
if !proj:
|
||||
print("!proj!")
|
||||
|
||||
set_pixel(local_position.x, local_position.y, proj.current_color)
|
||||
|
||||
func is_local(var pos : Vector2) -> bool:
|
||||
if pos.x < 0 || pos.y < 0 || pos.x > size.x || pos.y > size.y:
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
[node name="PaintProject" type="PaintProject"]
|
||||
size = Vector2i( 128, 128 )
|
||||
current_color = Color( 0.86538, 0.233915, 0.49333, 1 )
|
||||
current_color = Color( 0.511169, 0.141401, 0.0907945, 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="PaintCanvas" type="PaintCanvas" parent="."]
|
||||
|
Loading…
Reference in New Issue
Block a user