moviepy.video.fx.Painting#
- class moviepy.video.fx.Painting.Painting(saturation: float = 1.4, black: float = 0.006)[source]#
Transforms any photo into some kind of painting.
Transforms any photo into some kind of painting. Saturation tells at which point the colors of the result should be flashy.
blackgives the amount of black lines wanted.np_image : a numpy image
- copy()#
Return a shallow copy of an Effect.
You must always copy an
Effectbefore applying, because some of them will modify their own attributes when applied. For example, setting a previously unset property by using target clip property.If we was to use the original effect, calling the same effect multiple times could lead to different properties, and different results for equivalent clips.
By using copy, we ensure we can use the same effect object multiple times while maintaining the same behavior/result.
In a way, copy makes the effect himself being kind of idempotent.
- to_painting(np_image, saturation=1.4, black=0.006)[source]#
Transforms any photo into some kind of painting.
Transforms any photo into some kind of painting. Saturation tells at which point the colors of the result should be flashy.
blackgives the amount of black lines wanted.np_image : a numpy image