Skip to content

Commit b22c65a

Browse files
authored
Merge pull request #15 from hx2A/main
release 0.10.8a4
2 parents 24aeb9d + 1770da9 commit b22c65a

97 files changed

Lines changed: 897 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

py5/__init__.py

Lines changed: 217 additions & 3 deletions
Large diffs are not rendered by default.

py5/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/create_font_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/custom_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/font.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

py5/graphics.py

Lines changed: 99 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by
@@ -640,6 +640,14 @@ def color(self, c: int, /) -> int:
640640
Note that when using hexadecimal notation, it is not necessary to use `color()`,
641641
as in: `c = 0x006699`
642642

643+
If you have matplotlib installed, you can create colors using matplotlib's
644+
named colors by passing a color name as a string to this method. See the list of
645+
named colors in the Matplotlib Named Colors reference. For more information, see
646+
the Matplotlib Named Colors section in the All About Colors integration
647+
documentation page. There's also other color related information on that page;
648+
go read it to learn more about various ways py5 makes it easy for you to work
649+
with color.
650+
643651
This method is the same as `color()` but linked to a `Py5Graphics` object. To
644652
see example code for how it can be used, see `color()`."""
645653
pass
@@ -727,6 +735,14 @@ def color(self, c: int, alpha: float, /) -> int:
727735
Note that when using hexadecimal notation, it is not necessary to use `color()`,
728736
as in: `c = 0x006699`
729737

738+
If you have matplotlib installed, you can create colors using matplotlib's
739+
named colors by passing a color name as a string to this method. See the list of
740+
named colors in the Matplotlib Named Colors reference. For more information, see
741+
the Matplotlib Named Colors section in the All About Colors integration
742+
documentation page. There's also other color related information on that page;
743+
go read it to learn more about various ways py5 makes it easy for you to work
744+
with color.
745+
730746
This method is the same as `color()` but linked to a `Py5Graphics` object. To
731747
see example code for how it can be used, see `color()`."""
732748
pass
@@ -814,6 +830,14 @@ def color(self, c: int, alpha: int, /) -> int:
814830
Note that when using hexadecimal notation, it is not necessary to use `color()`,
815831
as in: `c = 0x006699`
816832

833+
If you have matplotlib installed, you can create colors using matplotlib's
834+
named colors by passing a color name as a string to this method. See the list of
835+
named colors in the Matplotlib Named Colors reference. For more information, see
836+
the Matplotlib Named Colors section in the All About Colors integration
837+
documentation page. There's also other color related information on that page;
838+
go read it to learn more about various ways py5 makes it easy for you to work
839+
with color.
840+
817841
This method is the same as `color()` but linked to a `Py5Graphics` object. To
818842
see example code for how it can be used, see `color()`."""
819843
pass
@@ -901,6 +925,14 @@ def color(self, gray: float, /) -> int:
901925
Note that when using hexadecimal notation, it is not necessary to use `color()`,
902926
as in: `c = 0x006699`
903927

928+
If you have matplotlib installed, you can create colors using matplotlib's
929+
named colors by passing a color name as a string to this method. See the list of
930+
named colors in the Matplotlib Named Colors reference. For more information, see
931+
the Matplotlib Named Colors section in the All About Colors integration
932+
documentation page. There's also other color related information on that page;
933+
go read it to learn more about various ways py5 makes it easy for you to work
934+
with color.
935+
904936
This method is the same as `color()` but linked to a `Py5Graphics` object. To
905937
see example code for how it can be used, see `color()`."""
906938
pass
@@ -988,6 +1020,14 @@ def color(self, gray: float, alpha: float, /) -> int:
9881020
Note that when using hexadecimal notation, it is not necessary to use `color()`,
9891021
as in: `c = 0x006699`
9901022

1023+
If you have matplotlib installed, you can create colors using matplotlib's
1024+
named colors by passing a color name as a string to this method. See the list of
1025+
named colors in the Matplotlib Named Colors reference. For more information, see
1026+
the Matplotlib Named Colors section in the All About Colors integration
1027+
documentation page. There's also other color related information on that page;
1028+
go read it to learn more about various ways py5 makes it easy for you to work
1029+
with color.
1030+
9911031
This method is the same as `color()` but linked to a `Py5Graphics` object. To
9921032
see example code for how it can be used, see `color()`."""
9931033
pass
@@ -1075,6 +1115,14 @@ def color(self, v1: float, v2: float, v3: float, /) -> int:
10751115
Note that when using hexadecimal notation, it is not necessary to use `color()`,
10761116
as in: `c = 0x006699`
10771117

1118+
If you have matplotlib installed, you can create colors using matplotlib's
1119+
named colors by passing a color name as a string to this method. See the list of
1120+
named colors in the Matplotlib Named Colors reference. For more information, see
1121+
the Matplotlib Named Colors section in the All About Colors integration
1122+
documentation page. There's also other color related information on that page;
1123+
go read it to learn more about various ways py5 makes it easy for you to work
1124+
with color.
1125+
10781126
This method is the same as `color()` but linked to a `Py5Graphics` object. To
10791127
see example code for how it can be used, see `color()`."""
10801128
pass
@@ -1162,6 +1210,14 @@ def color(self, v1: float, v2: float, v3: float, a: float, /) -> int:
11621210
Note that when using hexadecimal notation, it is not necessary to use `color()`,
11631211
as in: `c = 0x006699`
11641212

1213+
If you have matplotlib installed, you can create colors using matplotlib's
1214+
named colors by passing a color name as a string to this method. See the list of
1215+
named colors in the Matplotlib Named Colors reference. For more information, see
1216+
the Matplotlib Named Colors section in the All About Colors integration
1217+
documentation page. There's also other color related information on that page;
1218+
go read it to learn more about various ways py5 makes it easy for you to work
1219+
with color.
1220+
11651221
This method is the same as `color()` but linked to a `Py5Graphics` object. To
11661222
see example code for how it can be used, see `color()`."""
11671223
pass
@@ -1249,6 +1305,14 @@ def color(self, v1: int, v2: int, v3: int, /) -> int:
12491305
Note that when using hexadecimal notation, it is not necessary to use `color()`,
12501306
as in: `c = 0x006699`
12511307

1308+
If you have matplotlib installed, you can create colors using matplotlib's
1309+
named colors by passing a color name as a string to this method. See the list of
1310+
named colors in the Matplotlib Named Colors reference. For more information, see
1311+
the Matplotlib Named Colors section in the All About Colors integration
1312+
documentation page. There's also other color related information on that page;
1313+
go read it to learn more about various ways py5 makes it easy for you to work
1314+
with color.
1315+
12521316
This method is the same as `color()` but linked to a `Py5Graphics` object. To
12531317
see example code for how it can be used, see `color()`."""
12541318
pass
@@ -1336,6 +1400,14 @@ def color(self, v1: int, v2: int, v3: int, a: int, /) -> int:
13361400
Note that when using hexadecimal notation, it is not necessary to use `color()`,
13371401
as in: `c = 0x006699`
13381402

1403+
If you have matplotlib installed, you can create colors using matplotlib's
1404+
named colors by passing a color name as a string to this method. See the list of
1405+
named colors in the Matplotlib Named Colors reference. For more information, see
1406+
the Matplotlib Named Colors section in the All About Colors integration
1407+
documentation page. There's also other color related information on that page;
1408+
go read it to learn more about various ways py5 makes it easy for you to work
1409+
with color.
1410+
13391411
This method is the same as `color()` but linked to a `Py5Graphics` object. To
13401412
see example code for how it can be used, see `color()`."""
13411413
pass
@@ -1439,7 +1511,15 @@ def color(self, hex_code: str, /) -> int:
14391511
(in that order) for the color. Notice that in web color notation the alpha
14401512
channel is last, which is consistent with CSS colors, and in hexadecimal
14411513
notation the alpha channel is first, which is consistent with Processing color
1442-
values."""
1514+
values.
1515+
1516+
If you have matplotlib installed, you can create colors using matplotlib's
1517+
named colors by passing a color name as a string to this method. See the list of
1518+
named colors in the Matplotlib Named Colors reference. For more information, see
1519+
the Matplotlib Named Colors section in the All About Colors integration
1520+
documentation page. There's also other color related information on that page;
1521+
go read it to learn more about various ways py5 makes it easy for you to work
1522+
with color."""
14431523
pass
14441524

14451525
@overload
@@ -1541,7 +1621,15 @@ def color(self, hex_code: str, alpha: int, /) -> int:
15411621
(in that order) for the color. Notice that in web color notation the alpha
15421622
channel is last, which is consistent with CSS colors, and in hexadecimal
15431623
notation the alpha channel is first, which is consistent with Processing color
1544-
values."""
1624+
values.
1625+
1626+
If you have matplotlib installed, you can create colors using matplotlib's
1627+
named colors by passing a color name as a string to this method. See the list of
1628+
named colors in the Matplotlib Named Colors reference. For more information, see
1629+
the Matplotlib Named Colors section in the All About Colors integration
1630+
documentation page. There's also other color related information on that page;
1631+
go read it to learn more about various ways py5 makes it easy for you to work
1632+
with color."""
15451633
pass
15461634

15471635
def color(self, *args) -> int:
@@ -1626,6 +1714,14 @@ def color(self, *args) -> int:
16261714
Note that when using hexadecimal notation, it is not necessary to use `color()`,
16271715
as in: `c = 0x006699`
16281716

1717+
If you have matplotlib installed, you can create colors using matplotlib's
1718+
named colors by passing a color name as a string to this method. See the list of
1719+
named colors in the Matplotlib Named Colors reference. For more information, see
1720+
the Matplotlib Named Colors section in the All About Colors integration
1721+
documentation page. There's also other color related information on that page;
1722+
go read it to learn more about various ways py5 makes it easy for you to work
1723+
with color.
1724+
16291725
This method is the same as `color()` but linked to a `Py5Graphics` object. To
16301726
see example code for how it can be used, see `color()`."""
16311727
args = list(args)

py5/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# *****************************************************************************
22
#
33
# Part of the py5 library
4-
# Copyright (C) 2020-2025 Jim Schmitz
4+
# Copyright (C) 2020-2026 Jim Schmitz
55
#
66
# This library is free software: you can redistribute it and/or modify it
77
# under the terms of the GNU Lesser General Public License as published by

0 commit comments

Comments
 (0)