An Interest In:
Web News this Week
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
- April 11, 2024
May 14, 2021 08:16 am GMT
Original Link: https://dev.to/raghav9official/exclusive-convert-text-into-image-in-javascript-easy-peasy-24lh
Exclusive: convert text into image in JavaScript!! (Easy peasy)
Hello guys have you ever wondered how to change text into an image in JavaScript?
Well in this tutorial I am going to tell you how to do that and this is damn easy:
I will use hash.JS as a mentioned it in my previous articles...
Imported by :
<script src="https://netopa.github.io/hash.js/hashtag_1.0.1.js"></script>
You can do that by a simple command shown below:
hash("#canvas").textToImg("textToImg!");
And he texted is automatically drawn in the Canvas element as a picture !!!
It took me Days to do that so if you enjoyed the article hit the unicorn and the like button!!!
Original Link: https://dev.to/raghav9official/exclusive-convert-text-into-image-in-javascript-easy-peasy-24lh
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To