Metadata-Version: 2.5
Name: C_librarianthefirstsecondandlast
Version: 1.5.1
Summary: Just a collection of functions to make coding easier. Functions for vector mathematics are present. As well as Limited game dev UI.
Author-email: Lumwyd <chrisuriri@gmail.com>
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Description-Content-Type: text/plain

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.