fix du décalage visuel/réel de la décontamination
This commit is contained in:
parent
35bc818399
commit
6d0100d703
@ -93,6 +93,8 @@ func get_value_surface() -> float:
|
||||
return float(ImageTools.get_color_pixel_count(image)) / UNIT_PER_PIXEL
|
||||
|
||||
func get_pixel_point(point : Vector2) -> Vector2i:
|
||||
var vec : Vector2 = Vector2(point) / UNIT_PER_PIXEL - Vector2.ONE
|
||||
return Vector2i(
|
||||
Vector2(point) / UNIT_PER_PIXEL
|
||||
roundi(vec.x),
|
||||
roundi(vec.y)
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user