diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-24 01:44:35 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-24 01:49:20 +0200 |
commit | 3079e91c8aa0d60223deddd46cc3e652f32f05b7 (patch) | |
tree | fe54a3d14509dcd193401ab0ffd69f21fca9828b /src/io/bufwriter.nim | |
parent | d7085253b704f8f0e31fa1cacf82a55399565da1 (diff) | |
download | chawan-3079e91c8aa0d60223deddd46cc3e652f32f05b7.tar.gz |
sixel: use inline background for blending
still not really great, because inline background is a mess too
Diffstat (limited to 'src/io/bufwriter.nim')
-rw-r--r-- | src/io/bufwriter.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io/bufwriter.nim b/src/io/bufwriter.nim index 3eea01fa..3bedf883 100644 --- a/src/io/bufwriter.nim +++ b/src/io/bufwriter.nim @@ -34,6 +34,7 @@ proc swrite*(writer: var BufferedWriter; obj: ref object) proc swrite*[T](writer: var BufferedWriter; o: Option[T]) proc swrite*[T, E](writer: var BufferedWriter; o: Result[T, E]) proc swrite*(writer: var BufferedWriter; c: ARGBColor) +proc swrite*(writer: var BufferedWriter; c: RGBColor) const InitLen = sizeof(int) * 2 const SizeInit = max(64, InitLen) @@ -151,3 +152,6 @@ proc swrite*[T, E](writer: var BufferedWriter; o: Result[T, E]) = proc swrite*(writer: var BufferedWriter; c: ARGBColor) = writer.swrite(uint32(c)) + +proc swrite*(writer: var BufferedWriter; c: RGBColor) = + writer.swrite(uint32(c)) |