# Is there any way to paint with three.js

**URL:** <https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072>\
**Category:** Questions\
**Tags:** canvas\
**Created:** [November 23, 2018, 2:16pm UTC](https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072 "2018-11-23T14:16:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![relaxslow](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/relaxslow/32/3079_2.png) [@relaxslow](https://discourse.threejs.org/u/relaxslow)\
**Post date:** [November 23, 2018, 2:16pm UTC](https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072/1 "2018-11-23T14:16:58Z")

</div>

I think about build a small paint program using three.js which I can lasso an area and fill in color. Is it possible?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [November 23, 2018, 2:28pm UTC](https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072/2 "2018-11-23T14:28:35Z")

</div>

> [@relaxslow](#):
>
> Is it possible?

If it’s a 2D painting tool, you don’t need `three.js` at all. Just using the [2D Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial) should be sufficient.

---

<div class="post-metadata">

**Author:** ![relaxslow](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/relaxslow/32/3079_2.png) [@relaxslow](https://discourse.threejs.org/u/relaxslow)\
**Post date:** [November 23, 2018, 2:32pm UTC](https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072/3 "2018-11-23T14:32:38Z")

</div>

I confused on the performance, because I heard webgl is fast. So I think a webgl based 2d paint program is fast, right?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [November 23, 2018, 2:58pm UTC](https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072/4 "2018-11-23T14:58:05Z")

</div>

I think this depends on what you want to do with your painting tool. Performance is not always the most important criterion. `Canvas 2D` provides a very convenient API for issuing drawing operations on a canvas. This is not the focus of `three.js`.

---

<div class="post-metadata">

**Author:** ![relaxslow](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/relaxslow/32/3079_2.png) [@relaxslow](https://discourse.threejs.org/u/relaxslow)\
**Post date:** [November 23, 2018, 3:00pm UTC](https://discourse.threejs.org/t/is-there-any-way-to-paint-with-three-js/5072/5 "2018-11-23T15:00:39Z")

</div>

ok, thank you , let me try canvas 2d.
