Skip to content

Commit 7b6a993

Browse files
committed
Update README.md
1 parent 5599258 commit 7b6a993

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ The following piece of code will generate a frosty effect out of any node:
4444
```java
4545
//...
4646
FrostyEffect effect = new FrostyEffect(opacity, updateTime); // Instantiates the effect. The parameters are optional
47-
effect.apply(node); // Binds the effect to the node
48-
FrostyBox box = effect.getBox(); // Retrieves the generated container
47+
FrostyBox box = new FrostyBox(effect, node); // Instantiates a container with frosty effect
4948
root.getChildren().add(box); // Adds the container to the scene
5049
```
5150

@@ -62,4 +61,4 @@ Then it's possible to style it:
6261
}
6362
```
6463

65-
Note that the target nodes must not be directly added to the root.
64+
**Note** that the target nodes must not be directly added to the root.

0 commit comments

Comments
 (0)