KonvaJS Tutorial Part 1 - Drawing on the HTML5 Canvas Using the KonvaJS Library

KonvaJS Tutorial Part 1 - Drawing on the HTML5 Canvas Using the KonvaJS Library

Your WebDev Buddy

2 года назад

9,429 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DrYiWei
@DrYiWei - 05.08.2022 03:46

Exactly what I'm looking for, very clear explanation, great work! Keep going and big thank you!

Ответить
@kiettr05
@kiettr05 - 09.08.2022 05:26

great video!

Ответить
@lukaskopecky445
@lukaskopecky445 - 14.08.2022 20:55

How can I get the position (x,y) of shapes that have been drawn? For now I am just trying to log them, but instead of a number i get "function e()".
Here's my code:

var rect4 = new Konva.Rect({
x:100,
y:100,
width:100,
height: 50,
fill: 'black',
});

rect4.on('dblclick', () => {
console.log(rect4.x);
});

PS: stage and layer is created and I also added the rectangle to it just like you're supposed to.

Ответить
@MistaSmith
@MistaSmith - 28.09.2022 12:26

Loving the way you teach! And yes, the other one is hsv().
H -> Hue -> Which angle on the color wheel are we?
S -> Saturation -> How thick do we want to make the colour? Just a little smudge, or thick and shiny?
V -> Value -> How dark or light do we want the colour to be?

I‘d enjoy seeing more content from you! Even though I found Kanva is not my way. 😊

Ответить
@asim-gandu-phenchod
@asim-gandu-phenchod - 12.10.2022 15:09

Very precise and to the point. Loved it

Ответить
@asim-gandu-phenchod
@asim-gandu-phenchod - 12.10.2022 15:12

That is fantastic indeed

Ответить
@rocioperez6812
@rocioperez6812 - 31.10.2022 19:55

thank you so much!

Ответить
@sandeshwar
@sandeshwar - 28.11.2022 13:49

Great explanation!!

Ответить
@albertnahas4619
@albertnahas4619 - 20.01.2023 20:42

Great video! thank you for providing this helpful information

Ответить
@arpanasinha6500
@arpanasinha6500 - 06.07.2023 11:07

I have implemented Zoom in and out , but scroll is not working corresponding to the zoom level

Ответить
@anle2269
@anle2269 - 18.07.2023 10:36

I love your channel so much just to let you know that :))

Ответить
@parthjasani7
@parthjasani7 - 21.11.2023 18:38

could you please suggestions how to group ungroup on elements?

Ответить
@isakanderson7722
@isakanderson7722 - 29.11.2023 20:54

DRAGGABLE!

Ответить
@bryanlegrand4523
@bryanlegrand4523 - 31.03.2024 11:24

Excellent tutorial, clear, to the point, easy to reproduce. You have great pedagogical instincts. You should really continue to make tutorial videos.

Ответить
@danny_the_K
@danny_the_K - 06.06.2024 15:27

I just finished watching all of your Konva videos… Thank you so much for sharing your knowledge with simple, direct, examples. These are great tutorials for us average Joes. I am trying to build an application for drawing on top of a floor plan. Are going to add any more videos? I want to understand 1) How to save object you’ve added to the canvas and then reload them when opening up a previous drawing. 2) How to load and scale an image to typical mechanical drawing page sizes (eg A = 8.5x11, B=11x17 in landscape mode). 3) How to build and modify an icon library and make it available on loading the program? That way a user can simply click an icon and drop it on the layer for the overlay on top of the image. I would love to chat with you offline, but there is no contact info on your account.

Ответить