B
B
Bogdan2019-02-03 11:14:24
JavaScript
Bogdan, 2019-02-03 11:14:24

Black and white photo effect?

Hello. Tell me please. I found an article on how to make a photo black and white, but there on Three.js. It’s like I don’t need interactive, can I somehow make the same filter on a regular Canvas, so as not to drag it into the Three.js project? Thank you.
5c56a2db205f6966537041.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
coderisimo, 2019-02-03
@bogdan_uman

img {
  -webkit-filter: grayscale(100%); /*для safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

A
Alexander Sukhanov, 2019-02-03
@xazbix

CSS: And the same filters can reduce brightness, contrast, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question