Just a little thought about the canvas - Forum

Forum Navigation
You need to log in to create posts and topics.

Just a little thought about the canvas

Just a little thought: the canvas (HTML+Javascript) allows many things. Imagine that everything goes through a single canvas, in a clean HTML page, with a big dose of JS. The JS would draw images, graphics, texts, and would react to events (mouse, keyboard...).

I think this way of looking at things would simplify the creation of various Web, Android and IOS applications. Not all apps, I know...

The concern is that the components would have to be reinvented (button, checkbox, textbox, listbox...). It would also be necessary to set up an event handler, but it is not yet too complicated.

For what benefit? Developing a webapp normally requires mixing HTML, with CSS, NeoScript, and Javascript. With this canvas solution, the VisualNeo user would only see one totally unified technology (like Dot.Net of Microsoft).

Implementing what I have just written is not an easy task. Personally, I don't have much time, I will have some when I retire in 3-4 years. And if my dear wife has no other plans for me, I think I'll consider this idea :)

And you, what do you think ?

Darbdenral has reacted to this post.
Darbdenral

@patrik what you say is really interesting. In fact I'm sure you will enjoy taking a look at this JavaScript library:

https://zimjs.com/

It does exactly what you describe. I did some successful tests to create a Plugin for VisualNEO Web using it, but the effort to complete it is huge.
Please take a look and let me know what you think, perhaps we can complete the task step by step.

Thank you!

Indeed, it looks like ZIM is the basic tool I need.

If we want to use it, I think it would be wise to switch to JS, rather than having to create a huge plugin to cover for all aspects...

Thanks for the link, I'll take a closer look, but that doesn't affect my interest in VNWeb :)

luishp has reacted to this post.
luishp

The ultimate will be to keep the interface of VisualNeoWeb, standardizing the programming, making the CSS, HTML and VN layers disappear, by merging them into a single type of call (a bit like with .Net).

So, when we write myObject.property, we don't need to know if this property is an HTML, CSS, or other attribute.

A strange little thing that would be normalizable: SetVar asks for the variable to be modified first, while many instructions put the modified variable last.

Another strange example when you are used to classical languages: SetObjectStyle id css text / GetObjectStyle id css var. Yes, it's the same syntax, but it's unusual.

These are just thoughts... :)

luishp has reacted to this post.
luishp

I'm not sulking VNWeb, I'm making various little things to practice. But I sometimes have syntax problems, because I'm too used to languages from Pascal (Delphi) or C (C++, C#, Java, Javascript, Php...).

The ultimate would have been a harmonization of how to access attributes and properties with the same two commands (Set and Get), no matter if it's HTML, CSS, VN... I know, I already talked about it.

Another detail: it is strange that Math (content decimal var) and SetVar (var content) do not have the same logic for passing arguments. Same for some functions, I mix the brushes (french expression = tangle).

Otherwise, VNWeb remains a good platform for writing HTML and smartphone mini-applications.
Bravo ;)

@patrik I totally understand your point, but one of the best advantages of VisualNEO is not having to remember anything about syntax nor arguments position. Just double click a command or drag it from the command list and a Wizard will help you fill the correct arguments.
I don't even noticed what you describe until your comment. Some plugins commands have a lot of arguments, but that's not a problem thanks to the wizards.

Thank you for sharing your thoughts!

Vadim, Gaev and 2 other users have reacted to this post.
VadimGaevCDY@44roccocogliano

These are interesting ideas about using the canvas exclusively, but I wonder how handling the selection of text would be done? I find myself selecting text and using the clipboard quite frequently on websites and online apps in the browser. If everything is an image, I worry that I would lose that ability.

Gaev has reacted to this post.
Gaev

If the goal is to make a game, a webapp, a page-turner, then text capture is secondary.
We could capture the canvas instead. There are softwares capable of extracting text from an image.
The canvas is very practical if the final goal is totally graphic.

However, you can provide a graphic area (canvas) on one side, and an html area on the other.

@susan not necessarely, if you try the FabricJS plugin sample app (editable text button) you will see it's possible to copy and paste text.

susan has reacted to this post.
susan
引自luishp于 2022 年 8 月 31 日下午 6:27

@patrik 你说的真的很有趣。事实上,我相信你会喜欢看看这个 JavaScript 库:

https://zimjs.com/

It does exactly what you describe. I did some successful tests to create a Plugin for VisualNEO Web using it, but the effort to complete it is huge.
Please take a look and let me know what you think, perhaps we can complete the task step by step.

Thank you!

Looking forward to the completion of the zimjs plug-in, is there any progress recently?

@weiji772 due to lack of available time and the huge effort to complete this plugin it's not being developed right now.
Anyway I can retake it at any moment...