mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Add test cases
This commit is contained in:
parent
5718c2b6c9
commit
9e53e23261
@ -40,6 +40,10 @@ class Burkes:
|
|||||||
"""
|
"""
|
||||||
>>> Burkes.get_greyscale(3, 4, 5)
|
>>> Burkes.get_greyscale(3, 4, 5)
|
||||||
4.185
|
4.185
|
||||||
|
>>> Burkes.get_greyscale(0, 0, 0)
|
||||||
|
0.0
|
||||||
|
>>> Burkes.get_greyscale(255, 255, 255)
|
||||||
|
255.0
|
||||||
"""
|
"""
|
||||||
return 0.114 * blue + 0.587 * green + 0.299 * red
|
return 0.114 * blue + 0.587 * green + 0.299 * red
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user