user1658740
user1658740

Reputation: 75

Adding buttons and controls on HTML5 canvas

I'm using the three.js 3D engine. How can I add UI buttons on my WebGL canvas?

Upvotes: 2

Views: 5039

Answers (1)

Mikko Ohtamaa
Mikko Ohtamaa

Reputation: 83398

Use CSS to absolute positioning HTML elements over <canvas>.

<canvas> is just like all other HTML elements and the same tricks work on it.

http://css-tricks.com/absolute-positioning-inside-relative-positioning/

Upvotes: 1

Related Questions