vec-io 0.7.2__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vec_io-0.7.2 → vec_io-0.8.0}/PKG-INFO +1 -1
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/api.md +2 -1
- vec_io-0.8.0/docs/reference/Color.md +255 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_api.py +4 -4
- vec_io-0.8.0/tests/test_color.py +100 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_document_write.py +2 -2
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/__init__.py +1 -1
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/paint.py +250 -9
- vec_io-0.7.2/docs/reference/Color.md +0 -60
- {vec_io-0.7.2 → vec_io-0.8.0}/LICENSE +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/README.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/examples.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/AVIF.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Bookmark.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/CMYK.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Document.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Filter.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Flatten.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Font.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/FontDB.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Fonts.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/GlyphRun.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Image.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/ImagePolicy.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/JPEG.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/JXL.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Limits.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/LinearGradient.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Marker.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Mask.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Matrix.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/PDF.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/PDFFile.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/PDFPage.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/PNG.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Page.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/PageBoxes.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Path.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/PathMarker.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Pattern.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/RadialGradient.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/SVGDocument.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Simplify.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Span.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Spot.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/Style.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/TIFF.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/TextLayout.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/View.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Area.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Cells.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Circle.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.ClipPath.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Drawing.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Element.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Ellipse.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Group.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Image.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Line.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Lines.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Marker.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Markers.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Mask.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Path.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Pattern.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Polygon.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Polygons.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Polyline.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Rect.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Rects.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.SVG.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Segments.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.TSpan.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Text.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.TextBox.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/draw.Use.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Blend.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.ColorMatrix.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.ComponentTransfer.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Composite.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.ConvolveMatrix.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.DiffuseLighting.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.DisplacementMap.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.DistantLight.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.DropShadow.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Flood.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.GaussianBlur.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Image.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Merge.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Morphology.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Offset.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.PointLight.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Primitive.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.SpecularLighting.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.SpotLight.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Tile.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Transfer.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/filter.Turbulence.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/text.Extent.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/text.Glyph.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/reference/text.Paragraphs.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/docs/tutorial.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/hatch_build.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/pyproject.toml +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/abc.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/abc.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/big.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/big.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/binary.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/binary.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/bits2.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/bits2.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/dictwords.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/dictwords.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/empty.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/empty.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/four.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/four.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/handmade.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/handmade.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/ints.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/ints.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/mixed.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/mixed.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/multi.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/multi.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/one.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/one.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/random.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/random.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/text11.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/text11.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/text_q2.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/text_q2.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/three.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/three.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/w10.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/w10.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/w24.br +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/brotli/w24.out.z +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/colorfonts/ColrV0Test.ttf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/colorfonts/ColrV1Test.ttf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/bench_showcase.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/clipping.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/css.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/empty.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/filters.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/fonts_face.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/gradients.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/images.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/markers.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/masks.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/opacity.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/paths.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/patterns.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/rasterized.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/shapes.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/strokes.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/structure.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/text-wrap.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/text_basic.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/text_features.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/text_layout.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/text_path.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/text_unicode.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/transforms.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/units.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/use_symbol.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/corpus/viewbox.svg +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/fonts/VioTest-Bold.ttf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/fonts/VioTest-Regular.ttf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/fuzz_native.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/fuzz_pdfread.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/group_oracle.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/helpers.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/jbig2_encoder.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/jpx_fixtures.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/make_crypt_fixtures.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/maps.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfbuild.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/cmyk8.j2k +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/cmyk8.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/gray12.j2k +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/gray16.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/gray4-signed.j2k +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/graya16.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/gs-r2.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/gs-r3.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/icc-gray8.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r2.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r3.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r4-aes-nometa.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r4-aes.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r4-objstm.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r4-pdfdoc.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r4-rc4.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r5.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r6-empty.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r6-utf8.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/qpdf-r6.pdf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/rgb8.j2k +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/rgb8.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/rgba8.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/ycc420.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/pdfread/ycc422-offset.jp2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/scene_oracle.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/shapes.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_actual_text.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_avif.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_backends.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_canvas_features.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_ccitt.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_cells.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_chrome_suite.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_cli.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_cmap.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_cmyk.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_codecs.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_compile.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_convert.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_css_browser.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_dlist.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_dpi.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_encodings.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_eps.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_features.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_filters.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_flatten.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_font_sources.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_font_tables.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_fonts_io.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_google_fonts.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_image_formats.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_jpx_jbig2.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_jxl.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_marker_runs.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_native.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_native_emit.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_native_jpeg.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_native_limits.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_native_png.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_network.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_output.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_paint_browser.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_parsing.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_pdf_security.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_pdfa.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_pdffile.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_pdfread.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_raster.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_readers.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_resize.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_save_pages.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_scene.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_shapes.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_simplify.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_svg_fonts.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_svg_semantics.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_svg_writer.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_text.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_text_as_paths.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_text_browser.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_textlayout.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_threads.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_trim.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_type1.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_units.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_varfonts.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_views.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_woff2.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/test_woff2_write.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/testfont.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/typing_sample.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/varfonts/VarTest.otf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/varfonts/VarTest.ttf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/woff2/make.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/woff2/pair.woff2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/woff2/rich-null.woff2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/woff2/rich.ttf +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tests/woff2/rich.woff2 +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tools/build_native.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tools/gen_api.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/tools/zig.lock +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/__main__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/arrays.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/canvas.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/cells.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/cli.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/convert.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/css_tokens.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/document.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/draw.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/eps/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/eps/fonts.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/errors.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/filter.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/flate.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/flatten.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/cff.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/cff2.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/charstring.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/colr.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/ctan.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/download.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/encodings.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/fontdb.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/fontshare.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/fontshare_families.txt +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/fontsource.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/fontsource_families.txt +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/glyphlist.txt +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/google.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/google_families.txt +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/opentype.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/program.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/sfnt.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/type1.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/urw.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/variations.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/web.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/fonts/woff2.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/geometry.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/avif.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/bmp.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/codecs.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/gif.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/icc.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/jbig2.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/jpx.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/jxl.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/resource.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/tiff.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/image/webp.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/items.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/limits.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/lines.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/README.md +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/__main__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/_api.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/brotli.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/emit.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/filters.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/jpeg.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/manifest.json +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/pdfread.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/png.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/alloc.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/brotli.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/brotli.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/brotli_dict.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/brotli_enc.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/ccitt.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/color.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/crypt.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/cull.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/data.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/dlist.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/dlist.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/emit.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/epsw.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/filters.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/flat.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/flatten.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/func.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/image.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/interp.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/interp.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/items.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/jpeg.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/jpeg_dec.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/jpeg_enc.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/jpx.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/lex.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/math.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/matrix.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/median.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/mesh.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/paint.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/path.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/pdfread.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/png.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/quant.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/raster.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/res.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/rt.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/samples.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/scan.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/scene.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/scene.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/shade.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/shade.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/signatures.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/stroke.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/svgw.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/vio.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/vio_api.h +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/src/woff2.c +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/native/woff2.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/network.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/notebook.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/options.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/output_plan.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdf/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdf/copier.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdf/images.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdf/objects.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdf/pdfa.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdf/writer.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdffile.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/ccitt.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/cmap.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/cmap_resources.txt +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/cmaps.zip +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/colors.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/content.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/convert.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/errors.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/file.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/fonts.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/functions.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/images.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/meshes.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/origin.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/parser.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/reader.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/resources.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/security.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/shadings.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/pdfread/strings.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/py.typed +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/raster/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/raster/groups.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/raster/resources.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/recorder.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/records.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/resample.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/resources.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/scene.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/shapes.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/simplify.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/basic_shapes.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/clipmask.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/common.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/css.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/filters.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/fontface.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/images.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/markers.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/painter.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/parse.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/properties.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/references.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/render.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/servers.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/text.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/text_paint.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/tree.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/values.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/svg/writer.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/__init__.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/bidi.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/breaking.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/harfbuzz.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/hyph_en_us.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/hyph_fr.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/hyphenation.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/mirroring.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/path.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/segment.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/shaping.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/ucd_grapheme.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/ucd_ignorable.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/ucd_linebreak.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/text/ucd_scripts.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/threads.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/transfer.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/trim.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/types.py +0 -0
- {vec_io-0.7.2 → vec_io-0.8.0}/vec_io/units.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vec_io
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Vector graphics in Python: read SVG and PDF; write PDF, SVG, EPS, PNG, JPEG, JPEG XL, AVIF
|
|
5
5
|
Project-URL: Repository, https://github.com/ajgouhier/vec_io
|
|
6
6
|
Author-email: Arthur Gouhier <ajgouhier@gmail.com>
|
|
@@ -61,7 +61,8 @@ them.
|
|
|
61
61
|
functions (`rgb()`, `hsl()`, `hwb()`, `lab()`, `lch()`, `oklab()`, `oklch()`, `color()` in
|
|
62
62
|
`srgb`, `srgb-linear`, `display-p3`, `a98-rgb`, `prophoto-rgb`, `rec2020`, `xyz`,
|
|
63
63
|
`device-cmyk()`), relative colours and `color-mix()`; or a tuple `(r, g, b[, a])` in
|
|
64
|
-
[0, 1]. `Color(r, g, b, alpha=1)` is such a checked tuple (`
|
|
64
|
+
[0, 1]. `Color(r, g, b, alpha=1)` is such a checked tuple (`from_rgb255`, `from_hex`,
|
|
65
|
+
`from_oklch`; `.hex`, `.lightness`…, `with_lightness()`, `mix()`: its reference page).
|
|
65
66
|
Components outside [0, 1] raise `ArgumentError`; colours outside sRGB are gamut mapped as
|
|
66
67
|
CSS Color 4 says. `vec_io.paint.parse_color(value)` gives the tuple (`None`: not a
|
|
67
68
|
colour); `css_color(value, current="black", color_scheme="light")` also takes `currentColor`,
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Color
|
|
2
|
+
|
|
3
|
+
```python
|
|
4
|
+
from vec_io import Color
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
An sRGB color, a 4-tuple of red, green, blue and alpha in [0, 1] (any 3- or 4-tuple
|
|
8
|
+
of numbers in [0, 1], a CSS string, [`CMYK`](CMYK.md) or [`Spot`](Spot.md) is a color too).
|
|
9
|
+
|
|
10
|
+
`str(color)` is its `hex`. Lightness, chroma and hue are those of OKLCh
|
|
11
|
+
(Oklab in polar form): lightness 0–1, chroma 0 for grays, hue in degrees.
|
|
12
|
+
|
|
13
|
+
Example:
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
c = vec_io.Color.from_hex("#3b82f6")
|
|
17
|
+
c.with_lightness(0.8).hex # a lighter blue
|
|
18
|
+
c.with_hue(c.hue + 180) # its complement
|
|
19
|
+
c.mix("white", 0.25) # a quarter of the way to white
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
| Parameter | Meaning |
|
|
23
|
+
|---|---|
|
|
24
|
+
| `r` | Red in [0, 1]. |
|
|
25
|
+
| `g` | Green in [0, 1]. |
|
|
26
|
+
| `b` | Blue in [0, 1]. |
|
|
27
|
+
| `alpha` | Alpha (opacity) in [0, 1]. |
|
|
28
|
+
|
|
29
|
+
The type of the None singleton.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
Color(r, g, b, alpha=1.0) -> Color
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Members
|
|
36
|
+
|
|
37
|
+
### from_rgb255
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
Color.from_rgb255(r, g, b, alpha=1.0) -> Color
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The color of red, green and blue on the 0-255 scale.
|
|
44
|
+
|
|
45
|
+
| Parameter | Meaning |
|
|
46
|
+
|---|---|
|
|
47
|
+
| `r` | Red in [0, 255]. |
|
|
48
|
+
| `g` | Green in [0, 255]. |
|
|
49
|
+
| `b` | Blue in [0, 255]. |
|
|
50
|
+
| `alpha` | Alpha (opacity) in [0, 1]. |
|
|
51
|
+
|
|
52
|
+
### from_hex
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
Color.from_hex(text) -> Color
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The color of a CSS hex string.
|
|
59
|
+
|
|
60
|
+
| Parameter | Meaning |
|
|
61
|
+
|---|---|
|
|
62
|
+
| `text` | `"#rgb"`, `"#rgba"`, `"#rrggbb"` or `"#rrggbbaa"` (the `#` required). |
|
|
63
|
+
|
|
64
|
+
### from_oklch
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
Color.from_oklch(lightness, chroma, hue, alpha=1.0, gamut="map") -> Color
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The color of OKLCh coordinates.
|
|
71
|
+
|
|
72
|
+
| Parameter | Meaning |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `lightness` | Lightness in [0, 1] (0 black, 1 white). |
|
|
75
|
+
| `chroma` | Chroma, ≥ 0 (0 a gray; sRGB holds up to about 0.32). |
|
|
76
|
+
| `hue` | Hue in degrees (any number; wrapped into [0, 360)). |
|
|
77
|
+
| `alpha` | Alpha (opacity) in [0, 1]. |
|
|
78
|
+
| `gamut` | `"map"`: a color outside sRGB is mapped into it as CSS Color 4 maps `oklch()` (chroma lowered, lightness and hue kept within a just-noticeable difference); `"error"`: it raises `ArgumentError`. |
|
|
79
|
+
|
|
80
|
+
### r
|
|
81
|
+
|
|
82
|
+
Property.
|
|
83
|
+
|
|
84
|
+
Red, in [0, 1].
|
|
85
|
+
|
|
86
|
+
### g
|
|
87
|
+
|
|
88
|
+
Property.
|
|
89
|
+
|
|
90
|
+
Green, in [0, 1].
|
|
91
|
+
|
|
92
|
+
### b
|
|
93
|
+
|
|
94
|
+
Property.
|
|
95
|
+
|
|
96
|
+
Blue, in [0, 1].
|
|
97
|
+
|
|
98
|
+
### alpha
|
|
99
|
+
|
|
100
|
+
Property.
|
|
101
|
+
|
|
102
|
+
The alpha channel.
|
|
103
|
+
|
|
104
|
+
### rgb255
|
|
105
|
+
|
|
106
|
+
Property.
|
|
107
|
+
|
|
108
|
+
`(r, g, b)` as integers in [0, 255].
|
|
109
|
+
|
|
110
|
+
### rgba255
|
|
111
|
+
|
|
112
|
+
Property.
|
|
113
|
+
|
|
114
|
+
`(r, g, b, a)` as integers in [0, 255] (alpha as a hex color's last byte).
|
|
115
|
+
|
|
116
|
+
### hex
|
|
117
|
+
|
|
118
|
+
Property.
|
|
119
|
+
|
|
120
|
+
`"#rrggbb"`, or `"#rrggbbaa"` when translucent (lowercase).
|
|
121
|
+
|
|
122
|
+
### lightness
|
|
123
|
+
|
|
124
|
+
Property.
|
|
125
|
+
|
|
126
|
+
OKLCh lightness, in [0, 1].
|
|
127
|
+
|
|
128
|
+
### chroma
|
|
129
|
+
|
|
130
|
+
Property.
|
|
131
|
+
|
|
132
|
+
OKLCh chroma, ≥ 0 (0 for a gray).
|
|
133
|
+
|
|
134
|
+
### hue
|
|
135
|
+
|
|
136
|
+
Property.
|
|
137
|
+
|
|
138
|
+
OKLCh hue in degrees, in [0, 360); 0 for a gray.
|
|
139
|
+
|
|
140
|
+
### luminance
|
|
141
|
+
|
|
142
|
+
Property.
|
|
143
|
+
|
|
144
|
+
Relative luminance as WCAG defines it, in [0, 1] (alpha ignored).
|
|
145
|
+
|
|
146
|
+
### grayscale
|
|
147
|
+
|
|
148
|
+
Property.
|
|
149
|
+
|
|
150
|
+
The gray of the same lightness (chroma 0), alpha kept.
|
|
151
|
+
|
|
152
|
+
### with_alpha
|
|
153
|
+
|
|
154
|
+
```python
|
|
155
|
+
color.with_alpha(alpha, mode="set") -> Color
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
This color with another alpha.
|
|
159
|
+
|
|
160
|
+
| Parameter | Meaning |
|
|
161
|
+
|---|---|
|
|
162
|
+
| `alpha` | Alpha in [0, 1]. |
|
|
163
|
+
| `mode` | `"set"`: the alpha becomes `alpha`; `"keep"`: a translucent color (alpha < 1) keeps its own, an opaque one takes `alpha`; `"multiply"`: its alpha times `alpha`. |
|
|
164
|
+
|
|
165
|
+
### without_alpha
|
|
166
|
+
|
|
167
|
+
```python
|
|
168
|
+
color.without_alpha()
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
This color, opaque.
|
|
172
|
+
|
|
173
|
+
### with_lightness
|
|
174
|
+
|
|
175
|
+
```python
|
|
176
|
+
color.with_lightness(value, gamut="map") -> Color
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
This color with another OKLCh lightness, its chroma, hue and alpha kept.
|
|
180
|
+
|
|
181
|
+
| Parameter | Meaning |
|
|
182
|
+
|---|---|
|
|
183
|
+
| `value` | Lightness in [0, 1]. |
|
|
184
|
+
| `gamut` | `"map"`: a result outside sRGB is mapped into it (its chroma lowered); `"error"`: it raises `ArgumentError`. |
|
|
185
|
+
|
|
186
|
+
### with_chroma
|
|
187
|
+
|
|
188
|
+
```python
|
|
189
|
+
color.with_chroma(value, gamut="map") -> Color
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
This color with another OKLCh chroma, its lightness, hue and alpha kept; a large
|
|
193
|
+
value gives the most vivid color of that lightness and hue.
|
|
194
|
+
|
|
195
|
+
| Parameter | Meaning |
|
|
196
|
+
|---|---|
|
|
197
|
+
| `value` | Chroma, ≥ 0 (0: a gray). |
|
|
198
|
+
| `gamut` | `"map"`: a result outside sRGB is mapped into it (its chroma lowered); `"error"`: it raises `ArgumentError`. |
|
|
199
|
+
|
|
200
|
+
### with_hue
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
color.with_hue(degrees, gamut="map") -> Color
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
This color with another OKLCh hue, its lightness, chroma and alpha kept.
|
|
207
|
+
|
|
208
|
+
| Parameter | Meaning |
|
|
209
|
+
|---|---|
|
|
210
|
+
| `degrees` | Hue in degrees (any number; wrapped into [0, 360)). |
|
|
211
|
+
| `gamut` | `"map"`: a result outside sRGB is mapped into it (its chroma lowered); `"error"`: it raises `ArgumentError`. |
|
|
212
|
+
|
|
213
|
+
### mix
|
|
214
|
+
|
|
215
|
+
```python
|
|
216
|
+
color.mix(other, t=0.5) -> Color
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
A color between this one and `other`, interpolated in Oklab (alpha too).
|
|
220
|
+
|
|
221
|
+
| Parameter | Meaning |
|
|
222
|
+
|---|---|
|
|
223
|
+
| `other` | Any color vec_io accepts (a [`CMYK`](CMYK.md) by its RGB display). |
|
|
224
|
+
| `t` | Where between them, in [0, 1]: 0 this color, 1 `other`. |
|
|
225
|
+
|
|
226
|
+
### blend_alpha
|
|
227
|
+
|
|
228
|
+
```python
|
|
229
|
+
color.blend_alpha(background="#ffffff") -> Color
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
This color drawn over `background`: its sRGB values mixed by its alpha, as PDF
|
|
233
|
+
and SVG viewers composite; opaque over an opaque background.
|
|
234
|
+
|
|
235
|
+
| Parameter | Meaning |
|
|
236
|
+
|---|---|
|
|
237
|
+
| `background` | Any color vec_io accepts (a [`CMYK`](CMYK.md) by its RGB display). |
|
|
238
|
+
|
|
239
|
+
### nearest_from
|
|
240
|
+
|
|
241
|
+
```python
|
|
242
|
+
color.nearest_from(colors, consider_alpha=False)
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
The item of `colors` nearest to this color in Oklab, as given (a name stays a
|
|
246
|
+
name); the first of equals.
|
|
247
|
+
|
|
248
|
+
| Parameter | Meaning |
|
|
249
|
+
|---|---|
|
|
250
|
+
| `colors` | Colors vec_io accepts (CSS names are CSS's: `"red"` is `#ff0000`). |
|
|
251
|
+
| `consider_alpha` | Count the alpha difference in the distance too. |
|
|
252
|
+
|
|
253
|
+
## See also
|
|
254
|
+
|
|
255
|
+
- [1. Conventions](../api.md#1-conventions)
|
|
@@ -1439,11 +1439,11 @@ class ColorArgumentTests(unittest.TestCase):
|
|
|
1439
1439
|
for bad in ((255, 0, 0), (2, 0, 0), (0.5, -0.1, 0), (1, 0, 0, 2), (0, 0, float("nan"))):
|
|
1440
1440
|
with self.assertRaisesRegex(ValueError, "rgb255"):
|
|
1441
1441
|
to_rgba(bad)
|
|
1442
|
-
self.assertEqual(vec_io.Color.
|
|
1442
|
+
self.assertEqual(vec_io.Color.from_rgb255(255, 0, 0, 0.5), (1.0, 0.0, 0.0, 0.5))
|
|
1443
1443
|
with self.assertRaises(ValueError):
|
|
1444
|
-
vec_io.Color.
|
|
1444
|
+
vec_io.Color.from_rgb255(256, 0, 0)
|
|
1445
1445
|
page = new_doc().add_page(100, 100)
|
|
1446
|
-
page.fill = vec_io.Color.
|
|
1446
|
+
page.fill = vec_io.Color.from_rgb255(128, 64, 0)
|
|
1447
1447
|
page.draw_rect(0, 0, 1, 1, stroke=None)
|
|
1448
1448
|
page.draw_segments([0], [0], [1], [1], stroke=[(1, 0, 0)])
|
|
1449
1449
|
with self.assertRaises(ValueError):
|
|
@@ -1474,7 +1474,7 @@ class ColorArgumentTests(unittest.TestCase):
|
|
|
1474
1474
|
def test_drawing_color_tuples(self):
|
|
1475
1475
|
d = draw.Drawing(100, 100)
|
|
1476
1476
|
d.append(draw.Rect(0, 0, 10, 10, fill=(1, 0, 0), stroke=(0, 0, 1, 0.5)))
|
|
1477
|
-
d.append(draw.Lines([0, 1], [0, 1], stroke=vec_io.Color.
|
|
1477
|
+
d.append(draw.Lines([0, 1], [0, 1], stroke=vec_io.Color.from_rgb255(0, 128, 0)))
|
|
1478
1478
|
out = d.write("svg").decode()
|
|
1479
1479
|
self.assertIn('fill="#f00" stroke="#00f" stroke-opacity="0.5"', out)
|
|
1480
1480
|
self.assertIn('stroke="#008000"', out)
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""``vec_io.Color``: constructors, properties and the variants it makes."""
|
|
2
|
+
|
|
3
|
+
import unittest
|
|
4
|
+
|
|
5
|
+
import vec_io
|
|
6
|
+
from vec_io import Color
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ColorTest(unittest.TestCase):
|
|
10
|
+
def test_constructors(self):
|
|
11
|
+
self.assertEqual(Color.from_rgb255(255, 128, 0).hex, "#ff8000")
|
|
12
|
+
self.assertEqual(Color.from_hex("#f00"), (1.0, 0.0, 0.0, 1.0))
|
|
13
|
+
self.assertEqual(Color.from_hex("#ff000080").alpha, 128 / 255)
|
|
14
|
+
self.assertEqual(Color.from_hex("#F008").hex, "#ff000088")
|
|
15
|
+
for bad in ("f00", "#12345", "#ggg", 0xff0000):
|
|
16
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
17
|
+
Color.from_hex(bad)
|
|
18
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
19
|
+
Color.from_rgb255(256, 0, 0)
|
|
20
|
+
self.assertFalse(hasattr(Color, "rgb255") and callable(Color.rgb255))
|
|
21
|
+
|
|
22
|
+
def test_properties(self):
|
|
23
|
+
c = Color.from_hex("#3b82f6")
|
|
24
|
+
self.assertEqual((c.r, c.g, c.b, c.alpha), tuple(c))
|
|
25
|
+
self.assertEqual(c.rgb255, (59, 130, 246))
|
|
26
|
+
self.assertEqual(c.rgba255, (59, 130, 246, 255))
|
|
27
|
+
self.assertEqual(c.hex, "#3b82f6")
|
|
28
|
+
self.assertEqual(str(c), "#3b82f6")
|
|
29
|
+
self.assertTrue(repr(c).startswith("Color(0.23"))
|
|
30
|
+
self.assertEqual(Color(1, 0, 0, 0.5).hex, "#ff000080")
|
|
31
|
+
self.assertAlmostEqual(c.lightness, 0.6231, places=3)
|
|
32
|
+
self.assertAlmostEqual(c.chroma, 0.188, places=3)
|
|
33
|
+
self.assertAlmostEqual(c.hue, 259.81, places=1)
|
|
34
|
+
self.assertEqual(Color(0.5, 0.5, 0.5).hue, 0.0)
|
|
35
|
+
self.assertEqual(Color(1, 1, 1).luminance, 1.0)
|
|
36
|
+
self.assertAlmostEqual(Color(1, 0, 0).luminance, 0.2126)
|
|
37
|
+
|
|
38
|
+
def test_oklch(self):
|
|
39
|
+
c = Color.from_hex("#3b82f6")
|
|
40
|
+
self.assertEqual(Color.from_oklch(c.lightness, c.chroma, c.hue).hex, c.hex)
|
|
41
|
+
self.assertEqual(Color.from_oklch(c.lightness, c.chroma, c.hue + 360).hex, c.hex)
|
|
42
|
+
darker = c.with_lightness(0.4)
|
|
43
|
+
self.assertAlmostEqual(darker.lightness, 0.4, places=2)
|
|
44
|
+
self.assertAlmostEqual(darker.hue, c.hue, delta=5) # mapped: within a JND
|
|
45
|
+
turned = c.with_hue(c.hue + 180)
|
|
46
|
+
self.assertAlmostEqual(turned.lightness, c.lightness, delta=0.02)
|
|
47
|
+
self.assertAlmostEqual(turned.hue, (c.hue + 180) % 360, delta=5)
|
|
48
|
+
half = c.with_chroma(c.chroma / 2)
|
|
49
|
+
self.assertAlmostEqual(half.chroma, c.chroma / 2, places=3)
|
|
50
|
+
self.assertAlmostEqual(half.lightness, c.lightness, places=3)
|
|
51
|
+
vivid = c.with_chroma(1) # mapped: the most vivid of that hue
|
|
52
|
+
self.assertGreater(vivid.chroma, c.chroma)
|
|
53
|
+
self.assertLess(vivid.chroma, 1)
|
|
54
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
55
|
+
c.with_chroma(1, gamut="error")
|
|
56
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
57
|
+
c.with_lightness(1.5)
|
|
58
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
59
|
+
c.with_hue(10, gamut="clip")
|
|
60
|
+
gray = c.grayscale
|
|
61
|
+
self.assertAlmostEqual(gray.chroma, 0, places=6)
|
|
62
|
+
self.assertAlmostEqual(gray.lightness, c.lightness, places=3)
|
|
63
|
+
self.assertEqual(gray.r, gray.g)
|
|
64
|
+
|
|
65
|
+
def test_alpha(self):
|
|
66
|
+
c = Color(1, 0, 0, 0.5)
|
|
67
|
+
self.assertEqual(c.with_alpha(0.4).alpha, 0.4)
|
|
68
|
+
self.assertEqual(c.with_alpha(0.4, mode="keep").alpha, 0.5)
|
|
69
|
+
self.assertEqual(Color(1, 0, 0).with_alpha(0.4, mode="keep").alpha, 0.4)
|
|
70
|
+
self.assertEqual(c.with_alpha(0.4, mode="multiply").alpha, 0.2)
|
|
71
|
+
self.assertEqual(c.without_alpha().alpha, 1.0)
|
|
72
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
73
|
+
c.with_alpha(0.4, mode="add")
|
|
74
|
+
self.assertEqual(c.blend_alpha().hex, "#ff8080")
|
|
75
|
+
self.assertEqual(c.blend_alpha("black").hex, "#800000")
|
|
76
|
+
over = c.blend_alpha((0, 0, 1, 0.5))
|
|
77
|
+
self.assertAlmostEqual(over.alpha, 0.75)
|
|
78
|
+
self.assertEqual(Color(0, 0, 0, 0).blend_alpha("none"), (0.0, 0.0, 0.0, 0.0))
|
|
79
|
+
|
|
80
|
+
def test_mix_and_nearest(self):
|
|
81
|
+
c = Color.from_hex("#3b82f6")
|
|
82
|
+
self.assertEqual(c.mix("white", 0).hex, c.hex)
|
|
83
|
+
self.assertEqual(c.mix("white", 1).hex, "#ffffff")
|
|
84
|
+
self.assertEqual(c.mix("#ff000080", 1).hex, "#ff000080")
|
|
85
|
+
middle = c.mix("black")
|
|
86
|
+
self.assertAlmostEqual(middle.lightness, c.lightness / 2, places=2)
|
|
87
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
88
|
+
c.mix("white", 2)
|
|
89
|
+
self.assertEqual(c.nearest_from(["red", "navy", "#336699"]), "#336699")
|
|
90
|
+
self.assertEqual(c.nearest_from(["#3b82f6", "#3b82f6"]), "#3b82f6")
|
|
91
|
+
faint = Color(1, 0, 0, 0.1)
|
|
92
|
+
options = [Color(1, 0, 0), Color(0.9, 0, 0, 0.1)]
|
|
93
|
+
self.assertIs(faint.nearest_from(options), options[0])
|
|
94
|
+
self.assertIs(faint.nearest_from(options, consider_alpha=True), options[1])
|
|
95
|
+
with self.assertRaises(vec_io.ArgumentError):
|
|
96
|
+
c.nearest_from([])
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
if __name__ == "__main__":
|
|
100
|
+
unittest.main()
|
|
@@ -518,11 +518,11 @@ class SurfaceTest(unittest.TestCase):
|
|
|
518
518
|
self.assertIn(f"`{name}", api)
|
|
519
519
|
|
|
520
520
|
def test_color(self):
|
|
521
|
-
self.assertEqual(vec_io.Color.
|
|
521
|
+
self.assertEqual(vec_io.Color.from_rgb255(255, 0, 0, 0.5), (1.0, 0.0, 0.0, 0.5))
|
|
522
522
|
self.assertEqual(vec_io.Color(1, 0, 0).alpha, 1.0)
|
|
523
523
|
self.assertNotIn("rgb255", vec_io.__all__)
|
|
524
524
|
with self.assertRaises(ValueError):
|
|
525
|
-
vec_io.Color.
|
|
525
|
+
vec_io.Color.from_rgb255(256, 0, 0)
|
|
526
526
|
with self.assertRaises(ValueError):
|
|
527
527
|
vec_io.Color(2, 0, 0)
|
|
528
528
|
|