9
9
95baes2018-03-18 12:26:15
css
95baes, 2018-03-18 12:26:15

How to create a similar image constructor?

Hello, how can I create or copy such a constructor?
https://www.vsemayki.ru/constructor
Close to understanding with canvas.
"""How can I load and display a custom image or text.""(upd)
Tasks: create a clear and pleasant user interface. Avoid reloading the web page when adding your image. Saving the final result.
I think you can do with one js, but I don’t know where to dig.Thanks for any information.Sorry in advance for incompetence.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
asd111, 2018-03-18
@asd111

Canvas

var canvas = document.getElementById('viewport'),
context = canvas.getContext('2d');

make_base();

function make_base()
{
  base_image = new Image();
  base_image.src = 'img/base.png';
  base_image.onload = function(){
    context.drawImage(base_image, 0, 0);
  }
}

O
Orkhan Hasanli, 2018-03-18
@azerphoenix

Hello!
If you need an online store, then VP has a ready-made plugin for creating such products.
https://codecanyon.net/item/woocommerce-visual-pro...
Demo - https://configuratorsuiteforwp.com/demo/sunglasses/
And if you want to implement it yourself, then Canvas will be the best.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question