-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack images #13
Comments
Bonjour Monsieur, Excusez-moi de ne pas avoir envoyé de mail pour vous expliquer mon problème. Mais remarquant que Jeudi il était déjà trop tard pour vous envoyez le message, j'ai décidé de résoudre le problème tout seul alors voici une fourmi avec son cailloux sur le dos! #include <xwidgets/xhtml.hpp> html.value = R"html(<style> <*div style="position: relative; left: 5px; top: 5px;"> html.display() |
Ok. Est-ce que cela marche encore avec trois images empilées?
Avec un tableau?
Par un "NodeJS", tu entends "un serveur web?" ?
À tout à l'heure,
Nicolas
On Wed, Mar 25, 2020 at 03:05:52AM -0700, Disatiler wrote:
Bonjour Monsieur,
Excusez-moi de ne pas avoir envoyé de mail pour vous expliquer mon problème. Mais remarquant que Jeudi il était déjà trop tard pour vous envoyez le message, j'ai décidé de résoudre le problème tout seul alors voici une fourmi avec son cailloux sur le dos!
(Il faut juste le mettre dans le même folder que les image mais je vais faire un NodeJs pour pouvoir chercher les images de très loin).
#include <xwidgets/xhtml.hpp>
xw::html html;
html.value = R"html(<style>
.stack
{
position: absolute;
top: 0px;
left: 0px;
}
</style>
<div style="position: relative; left: 5px; top: 5px;">
<img src="rock.svg" class="stack" width=20 height=20 >
</div>
<img src="ant-s.svg">
)html";
html.display()
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#13 (comment)
Nicolas
--
Nicolas M. Thiéry "Isil" <nthiery@users.sf.net>
http://Nicolas.Thiery.name/
|
Currently, the labyrinth is not drawn just below the ant. Also, if the ant carries a rock, that rock is not drawn, instead a dedicated message is displayed. This is unlike the original game.
Implementation: stack the html images as in the following examples:
The text was updated successfully, but these errors were encountered: