-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Content proposal #6
Comments
Hey mate! Yeah, I'd be all about that! I guess I'm trying not to use any libraries here, if you could put it in a tutorial the triangle gen, and the color stuff, perhaps keeping with the whites/greys color scheme. And then we could link out the library in the post as well. I've been aiming to not really use many pictures in the posts, and generally have the code doing some drawing from an early stage. |
Thanks for answering so quickly. |
Ahh awesome! Sounds great to me! Let me know if you need a hand with the tutorial markdown stuff, its definitely a little scrappy at the moment, but always improving! |
YES! I don't wanted to disturb you at first, I wanted to find a solution by myself but I reached a point where I don't know what to do. From what I see, the difference between dev and prod, is the snippets of code are pre-processed. It gently insert a Thanks for your help :) |
Yeah, those are done manually. I want to make an easier way to automate it, but for the time being, thats been it. You can see in this file https://raw.githubusercontent.com/tholman/generative-artistry/master/content/tutorials/cubic-disarray.md what it looks like. So, in the block below, I have the Then the
If its easier, we could also do a quick call, I've been trying to work on the docs for this stuff, but it kinda evolves as I go. |
Ermm.. I followed this syntax. But at no point highlight-js pick-up the code and render it. |
Ahh sorry. I wonder if the problem is that I've got a global dependency on my laptop that should be actually in the project... chroma, or pygments perhaps. Will have to check when I'm home, sorry bout this! |
That might explain so many things 😅 I was looking through different highlighters to render the code and turn manually the following code
into <div id="tmd-1" class="tmd-trigger" data-from="0" data-action="replace" data-to="all">
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code class="language-js" data-lang="js"><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-js" data-lang="js"><span class="kd">var</span> <span class="nx">canvas</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">'canvas'</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">context</span> <span class="o">=</span> <span class="nx">canvas</span><span class="p">.</span><span class="nx">getContext</span><span class="p">(</span><span class="s1">'2d'</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">size</span> <span class="o">=</span> <span class="nb">window</span><span class="p">.</span><span class="nx">innerWidth</span><span class="p">;</span>
<span class="nx">canvas</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">size</span><span class="p">;</span>
<span class="nx">canvas</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">size</span><span class="p">;</span>
</code></pre></td></tr></table>
</div>
</div>
</div> |
Rookie move from me there, will have it fixed up tonight ;)
|
Hmmm, there was the Whats your version, I'm on |
Yes, I already had Hugo installed for a previous project. But it's an old one |
Yeah, there is no package.json ... since hugo is easier to manage through brew. The updated package make any difference? |
Ahhhhhh!! Tim, I'm so sorry. The update fixed everything. I really thought it was an extra plugin that would do all the magic, but no. So happy to see the canvas being alive. Sorry again, I should have started by that. |
Not at all! I'll put something in the readme about the version too. We all win 💃 |
👍 However, your work on the updated editor and canvas along the scroll is absolute badass. The syntax is easy to understand and the effect is wonderful. I'm close to provide a first draft :) |
Aw awesome! I'd love to have a chat with you when you're done, been trying to wrap up some documentation for a version of tutorial markdown for people to use separate of this website. 🙏 |
Yes sure :) With pleasure! |
Amazing! Honestly, this is so cool to see someone else using this system! I see a few problems caused by some of my tutorial markdowny bugs, and some of my lazy arounds that is causing you a couple of problems, going to fix that, and then have a few little ideas to make this cleaner. Ahh, I love the shades of grey too, this is going to be great. I'll do a pull request or two on yours this weekend, and we can walk our way towards publishing 💃 |
Happy to hear! You built an awesome system, it's really nice and easy to
use.
Glad you like the post. Looking forward to your PRs :-D
|
Ok! Made a few little changes there, https://github.com/maxwellito/generative-artistry/pull/2 ... let me know what you think :) |
YAS! I'm AFK at the moment but will have a closer look once at home. Thanks
for your PR :)
|
Awesome! Ya, weekend is for weekending, we're in no rush 💃 |
And there we have it! https://generativeartistry.com/tutorials/triangular-mesh/ awesome! 💃 |
YAS! Thanks Tim! That was awesome :) PS: Great talk you gave at CSS conf in Berlin in 2015, it was my favorite of the day! |
<3 |
Hi Tim,
First, thanks for this project, I absolutely love it. The look and feel is brilliant too. I'm looking forward to your next posts.
I wanted to ask you if a post about how to build a map of random triangles would be interesting? I built a JS library to generate some but it's pretty basic to explain. The idea is to generate a perfect triangle grid, then use a bit of
Math.random
to move the points. You can see details on triangulr documentation (scroll until you see the two maps).If you feel like it's interesting, I can try to make a PR with pictures following the same look and feel.
Thanks,
Max
The text was updated successfully, but these errors were encountered: