Skip to main content
Changelog

1.5.1
- Fixed circular import causing crash.

1.5.0
- Added a new Point class, as well as Point2d and Point3d subclasses.
- Added a new Vector class, with Vector2d and Vector3d subclasses.
- Points and Vectors support operations between them such as addition, subtraction, multiplication and division.
- Points and Vectors can exist in an arbitrary amount of dimensions, and all functions have been modified to require data passed in as a Point or Vector explicitly. Lines are simply a tuple containing two Points.
- Added a new Colour class, that can be defined using a string hex code, or a RGB(A) tuple.
- Conversion between hex and RGB tuples is built in, and so are operations such as addition, subtraction, multiplication and division.
- Addition blends two colours together. The quantity attribute can be used to control weighting.
- Subtraction is defined as the inverse of addition, while multiplication and division are the conventional implementations
- Functions have now been separated into different modules, those being: colour, images, line, point, pygame, types and vector.
- All functions and classes can still be accessed via C_librarianthefirstsecondandlast.<function>.

- Added the following:
- convert_tuple_to_list, which accepts a tuple and recursively converts it into a list.
- truncate_file_at_byte_sequence, which accepts a file and a byte sequence, and truncates the file at the last occurrence of the byte sequence.
- colour.to_hex which converts an RGB tuple into a string hex code.
- colour.to_rgb, which converts a string hex code into a tuple of RGB values.
- colour.bright, which brightens a colour by a given percentage
- colour.dim, which dims a colour by a given percentage.
- colour.random_colour, which returns a random colour
- images.replace_colour, which replaces all pixels of a given colour inside a PIL ImageFile with a different colour.
- vector.cross_product, which calculates the cross product of the given vectors.
- degs and rads as types showing whether the function accepts or outputs radians or degrees.

- Altered the following:
- Vector and Point are no longer types, and are now classes.
- line.point_on_segment and line.line_intersect can now accept vectors existing in an arbitrary amount of dimensions, and are now more efficient.
- point.distance, point.angle_from and point.rotate_about can now accept points existing in an arbitrary amount of dimensions.
- vector.vector_from now uses subtraction of Points.
- vector.vector_from_angle and vector.angle_from_vector now accept/output a list of hypersherical angles when creating/accepting a vector existing in more than two dimensions.
- All vector functions now accept vectors existing in an arbitrary amount of dimensions.


1.4.0
-Added or altered type annotations within many functions
-Made warn() use a set to prevent duplicate warnings.
-Altered rotate_about to accept degrees.
-Rotation functions now consistently accept degrees and return radians.

1.3.1
-(Hopefully) fixed warn slowing down the game.

1.2.2
-Fixed issue with smooth_blur

1.2.1
-Made smooth_blur smoother

1.2.0
-Added two new functions. smooth_blur and blocky_blur

1.1.2
-(Attempted to) Fixed issue with negative sliders

1.1.1
-Fixed minor issue

1.1.0

-Added truncation of decimals.
-Added text wrapping of text through popup_text
-Added cull_whitespace. A function that removes whitespace within an image, returning only the smallest bounding box required.
-Added the ability to rotate a point about a separate point.

Metadata

Release files for C-librarianthefirstsecondandlast 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for C-librarianthefirstsecondandlast 1.5.1
File Size Uploaded Provenance Actions
c_librarianthefirstsecondandlast-1.5.1.tar.gz 11.9 kB Without provenance Details for c_librarianthefirstsecondandlast-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for C-librarianthefirstsecondandlast 1.5.1
File Interpreter ABI Platform Actions
c_librarianthefirstsecondandlast-1.5.1-py3-none-any.whl Python 3 none any Details for c_librarianthefirstsecondandlast-1.5.1-py3-none-any.whl

Total release size: 26.9 kB

Release files / c_librarianthefirstsecondandlast-1.5.1.tar.gz

Download URL c_librarianthefirstsecondandlast-1.5.1.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
31ba1232be9af40b741b960111ab8038641a31444cacb6065f96da00086bc560
BLAKE2b-256 checksum
How to use checksums
bfd47db196a239dbeae41367246927007558b8f8605f6105d2420de9d1c769dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / c_librarianthefirstsecondandlast-1.5.1-py3-none-any.whl

Download URL c_librarianthefirstsecondandlast-1.5.1-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eba184f231653d7f8082c08563c53725682bfbee5604a4c08003093fb627e035
BLAKE2b-256 checksum
How to use checksums
d6fc03ffb0abdf95eecdbeeccdb09bf673863020d177ce3f372bb5c2897dc187
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for C-librarianthefirstsecondandlast 1.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page