commit
14b79c85c5
4 changed files with 5 additions and 2 deletions
|
@ -306,6 +306,7 @@ exportProcs:
|
||||||
scale(float32, float32)
|
scale(float32, float32)
|
||||||
inverse(Matrix3)
|
inverse(Matrix3)
|
||||||
snapToPixels
|
snapToPixels
|
||||||
|
mix(Color, Color, float32)
|
||||||
|
|
||||||
writeFiles("bindings/generated", "Pixie")
|
writeFiles("bindings/generated", "Pixie")
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Blending modes.
|
## Blending modes.
|
||||||
|
|
||||||
import chroma, common, std/math
|
import chroma, common
|
||||||
|
|
||||||
# See https://www.w3.org/TR/compositing-1/
|
# See https://www.w3.org/TR/compositing-1/
|
||||||
# See https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_blend_equation_advanced.txt
|
# See https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_blend_equation_advanced.txt
|
||||||
|
|
|
@ -105,6 +105,9 @@ proc decodeGif*(data: string): Gif {.raises: [PixieError].} =
|
||||||
|
|
||||||
pos += 9
|
pos += 9
|
||||||
|
|
||||||
|
if imageWidth > screenWidth or imageHeight > screenHeight:
|
||||||
|
raise newException(PixieError, "Invalid GIF frame dimensions")
|
||||||
|
|
||||||
if pos + localColorTableSize * 3 > data.len:
|
if pos + localColorTableSize * 3 > data.len:
|
||||||
failInvalid()
|
failInvalid()
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,6 @@ proc transform*(path: Path, mat: Mat3) {.raises: [].} =
|
||||||
path.commands[0] = Move.float32
|
path.commands[0] = Move.float32
|
||||||
|
|
||||||
var i: int
|
var i: int
|
||||||
# for command in path.commands.mitems:
|
|
||||||
while i < path.commands.len:
|
while i < path.commands.len:
|
||||||
let kind = path.commands[i].PathCommandKind
|
let kind = path.commands[i].PathCommandKind
|
||||||
inc i
|
inc i
|
||||||
|
|
Loading…
Reference in a new issue