Release 2.2.0 - Addition of 6 New Colors #18
AlTimofeyev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hex_to_hsv()
,hsv_to_ansi()
,ansi_to_hsv()
,hex_to_ansi()
andansi_to_hex()
.SATURATION_TOLERANCE_RANGE
constant value from[10.0, 15.0]
to[15.0, 20.0]
.PASTEL_SATURATION_RANGE
constant value from[15.0, 75.0]
to[20.0, 55.0]
.print_raw_colors()
function to allow for printing raw extracted colors to the Terminal.print_palette_preview()
function, a simplified version of the prior print palette function that uses already-made palettes.print_palette_preview()
:print_default_palette_preview()
print_template_palette_preview()
generate_config_file()
function to include the new colors.save_palettes()
function header and the beginning of the function.export_file_format
check at the beginning of all the functions in this file, exceptgenerate_config_file()
, to make sure it's a supported format.math
andstat
packages to this file.Extractor
class.load()
function to load the Extractor class with an image before using therun()
function.generate_mood_palettes()
andgenerate_adaptive_palettes()
functions to generate mood and adaptive color palettes.set_color_format()
function to be able to modify the color format of both the extracted colors dictionary or any color palette dictionary that is passed to this function.convert_pastel()
function so that the saturation is adjusted regardless if it was already set to a proper saturation.check_missing_color_types()
function to usenew_bounds[0] +
for borrowing color types.new_bounds[1] -
instead, so I changed that for this update.['red', 'rose', 'magenta', 'violet', 'blue', 'azure', 'cyan', 'spring', 'green', 'chartreuse', 'yellow', 'orange']
(right side)['red', 'orange', 'yellow', 'chartreuse', 'green', 'spring', 'cyan', 'azure', 'blue', 'violet', 'magenta', 'rose']
(right side)get_left_and_right_colors()
andborrow_color()
functions to accommodate the change in linear color ordering.extract_colors()
function by adding aratios
parameter to the function header.generate_black_and_white()
function.sort_by_sat_and_bright_value()
function.get_dominant_color_name()
function to get the name of the dominant base color.get_hue_shift_value()
function to calculate how much to shift a hue based on the hue's range and on the percentage provided.calculate_dist_between_2_colors()
function to calculate the distance between two HSV colors.check_missing_colors()
function to be more concise.set_missing_color()
function to support thecheck_missing_colors()
function as there was repeated code.find_closest_to_centroid()
function to use the newcalculate_dist_between_2_colors()
function.This discussion was created from the release Release 2.2.0 - Addition of 6 New Colors.
Beta Was this translation helpful? Give feedback.
All reactions