Skip to content

Commit 03a339b

Browse files
authored
Adds examples for Lights and Shadows
1 parent f3b2531 commit 03a339b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,21 @@ PImage processedImage = SobelEdgeDetector.apply(image, false);
112112
PImage processedImage = Brightness.apply(image, value);
113113
// value isa positive number for brighting up or a negative for darken down
114114
```
115-
115+
116+
#### Changing highlights
117+
![alt vignette](https://github.com/Milchreis/processing-imageprocessing/blob/master/img/lights.png?raw=true)
118+
```java
119+
// intensity between -1.0 and 1.0
120+
PImage processedImage = Lights.apply(image, intensity);
121+
```
122+
123+
#### Changing shadows
124+
![alt vignette](https://github.com/Milchreis/processing-imageprocessing/blob/master/img/shadows.png?raw=true)
125+
```java
126+
// intensity between -1.0 and 1.0
127+
PImage processedImage = Shadows.apply(image, intensity);
128+
```
129+
116130
#### AutoBalance image
117131
![alt autobalance](https://github.com/Milchreis/processing-imageprocessing/blob/master/img/autobalance.png?raw=true)
118132
```java

0 commit comments

Comments
 (0)