1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix formatting

No linter erros fixed yet
This commit is contained in:
Emmanouil Papadeas 2022-04-22 15:42:36 +03:00
parent 19512e4516
commit 7215f3e0a7
2 changed files with 6 additions and 4 deletions

View file

@ -147,8 +147,9 @@ func compress_lzw(image: PoolByteArray, colors: PoolByteArray) -> Array:
return [binary_code_stream.pack(), min_code_size] return [binary_code_stream.pack(), min_code_size]
# gdlint: ignore=max-line-length func decompress_lzw(
func decompress_lzw(code_stream_data: PoolByteArray, min_code_size: int, colors: PoolByteArray) -> PoolByteArray: code_stream_data: PoolByteArray, min_code_size: int, colors: PoolByteArray
) -> PoolByteArray:
var code_table: CodeTable = initialize_color_code_table(colors) var code_table: CodeTable = initialize_color_code_table(colors)
var index_stream: PoolByteArray = PoolByteArray([]) var index_stream: PoolByteArray = PoolByteArray([])
var binary_code_stream = lsbbitunpacker.LSBLZWBitUnpacker.new(code_stream_data) var binary_code_stream = lsbbitunpacker.LSBLZWBitUnpacker.new(code_stream_data)

View file

@ -248,8 +248,9 @@ func _add_new_segment(y: int = 0) -> void:
# fill an horizontal segment around the specifid position, and adds it to the # fill an horizontal segment around the specifid position, and adds it to the
# list of segments filled. Returns the first x coordinate after the part of the # list of segments filled. Returns the first x coordinate after the part of the
# line that has been filled. # line that has been filled.
# gdlint: ignore=max-line-length func _flood_line_around_point(
func _flood_line_around_point(position: Vector2, project: Project, image: Image, src_color: Color) -> int: position: Vector2, project: Project, image: Image, src_color: Color
) -> int:
# this method is called by `_my_flood_fill` after the required data structures # this method is called by `_my_flood_fill` after the required data structures
# have been initialized # have been initialized
if not image.get_pixelv(position).is_equal_approx(src_color): if not image.get_pixelv(position).is_equal_approx(src_color):