@@ -41,8 +41,7 @@ class Colour:
41
41
colour : ColorBase | None = None ,
42
42
nameNull : bool = False ,
43
43
alpha : float = 1.0 ,
44
- ):
45
- ...
44
+ ): ...
46
45
```
47
46
48
47
### Colour().__ eq__
54
53
#### Signature
55
54
56
55
``` python
57
- def __eq__ (self , other : Colour) -> bool :
58
- ...
56
+ def __eq__ (self , other : Colour) -> bool : ...
59
57
```
60
58
61
59
### Colour().__ repr__
@@ -67,8 +65,7 @@ get a string representation of the object
67
65
#### Signature
68
66
69
67
``` python
70
- def __repr__ (self ):
71
- ...
68
+ def __repr__ (self ): ...
72
69
```
73
70
74
71
### Colour().colorToTuple
@@ -80,8 +77,7 @@ get the colour as a tuple. eg. sRGBColor -> (r, g, b)
80
77
#### Signature
81
78
82
79
``` python
83
- def colorToTuple (self ) -> tuple[float , ... ]:
84
- ...
80
+ def colorToTuple (self ) -> tuple[float , ... ]: ...
85
81
```
86
82
87
83
### Colour().convertedColourToHexTuple
@@ -102,8 +98,7 @@ sRGBColor -> ("ff", "ff", "ff")
102
98
#### Signature
103
99
104
100
``` python
105
- def convertedColourToHexTuple (self , uppercase : bool = False ) -> tuple[str , ... ]:
106
- ...
101
+ def convertedColourToHexTuple (self , uppercase : bool = False ) -> tuple[str , ... ]: ...
107
102
```
108
103
109
104
### Colour().convertedColourToTuple
@@ -116,8 +111,7 @@ sRGBColor -> (r, g, b)
116
111
#### Signature
117
112
118
113
``` python
119
- def convertedColourToTuple (self ) -> tuple[float , ... ]:
120
- ...
114
+ def convertedColourToTuple (self ) -> tuple[float , ... ]: ...
121
115
```
122
116
123
117
### Colour().getRGB255
@@ -129,8 +123,7 @@ get the colour as an rgb 255 tuple
129
123
#### Signature
130
124
131
125
``` python
132
- def getRGB255 (self ) -> tuple[int , ... ]:
133
- ...
126
+ def getRGB255 (self ) -> tuple[int , ... ]: ...
134
127
```
135
128
136
129
### Colour().getRGB255Hex
@@ -142,8 +135,7 @@ get the colour as an rgb 255 tuple in hex
142
135
#### Signature
143
136
144
137
``` python
145
- def getRGB255Hex (self , uppercase : bool = False ) -> tuple[str , ... ]:
146
- ...
138
+ def getRGB255Hex (self , uppercase : bool = False ) -> tuple[str , ... ]: ...
147
139
```
148
140
149
141
### Colour().toCMYK
@@ -155,8 +147,7 @@ convert to cmyk and dump a copy in self.convertedColour
155
147
#### Signature
156
148
157
149
``` python
158
- def toCMYK (self ) -> CMYKColor:
159
- ...
150
+ def toCMYK (self ) -> CMYKColor: ...
160
151
```
161
152
162
153
### Colour().toHSL
@@ -168,8 +159,7 @@ convert to hsl and dump a copy in self.convertedColour
168
159
#### Signature
169
160
170
161
``` python
171
- def toHSL (self ) -> HSLColor:
172
- ...
162
+ def toHSL (self ) -> HSLColor: ...
173
163
```
174
164
175
165
### Colour().toHSV
@@ -181,8 +171,7 @@ convert to hsv and dump a copy in self.convertedColour
181
171
#### Signature
182
172
183
173
``` python
184
- def toHSV (self ) -> HSVColor:
185
- ...
174
+ def toHSV (self ) -> HSVColor: ...
186
175
```
187
176
188
177
### Colour().toLAB
@@ -194,8 +183,7 @@ convert to lab and dump a copy in self.convertedColour
194
183
#### Signature
195
184
196
185
``` python
197
- def toLAB (self ) -> LabColor:
198
- ...
186
+ def toLAB (self ) -> LabColor: ...
199
187
```
200
188
201
189
### Colour().toRGB
@@ -207,8 +195,7 @@ convert to rgb and dump a copy in self.convertedColour
207
195
#### Signature
208
196
209
197
``` python
210
- def toRGB (self ) -> sRGBColor:
211
- ...
198
+ def toRGB (self ) -> sRGBColor: ...
212
199
```
213
200
214
201
@@ -231,8 +218,7 @@ class ColourSwatch:
231
218
description : str | None = None ,
232
219
swatchCopyright : str | None = None ,
233
220
author : str | None = None ,
234
- ):
235
- ...
221
+ ): ...
236
222
```
237
223
238
224
### ColourSwatch().__ eq__
@@ -244,8 +230,7 @@ probably not ideal for getting equality - avoid using ==
244
230
#### Signature
245
231
246
232
``` python
247
- def __eq__ (self , other : ColourSwatch):
248
- ...
233
+ def __eq__ (self , other : ColourSwatch): ...
249
234
```
250
235
251
236
### ColourSwatch().__ repr__
@@ -257,8 +242,7 @@ get a string representation of the object
257
242
#### Signature
258
243
259
244
``` python
260
- def __repr__ (self ) -> str :
261
- ...
245
+ def __repr__ (self ) -> str : ...
262
246
```
263
247
264
248
### ColourSwatch().toPILPalette
@@ -277,6 +261,5 @@ image.putpalette(colourSwatch.toPILPalette())
277
261
#### Signature
278
262
279
263
``` python
280
- def toPILPalette (self ) -> list[int ]:
281
- ...
264
+ def toPILPalette (self ) -> list[int ]: ...
282
265
```
0 commit comments