News for hackers. Stuff that matters.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by spankalee on Friday January 24, 2020 @03:24PM (#22142085)
If you like this, be sure to check out Wired Elements - a set of 20+ fully working, wire-frame style web components built with Rough.js (by the author of Rough.js): https://wiredjs.com/

They're great for rapid wire-frame prototyping.

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by syspec on Friday January 24, 2020 @03:35PM (#22142178)
I’ve seen this attempted before to operate success, but this is the best execution I have seen of this idea!

It’s dynamically rough so it’s different each time, but it’s not over done

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by shihn on Friday January 24, 2020 @03:38PM (#22142193)
wired-elements could be adapted to v4.0 of roughjs, which supports random number seeding. Causing the shape to remain the same, once generated.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by ygra on Friday January 24, 2020 @04:07PM (#22142463)
You could do the same with 3.1 with generators, I believe.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by grizzles on Friday January 24, 2020 @03:59PM (#22142399)
Rough.js + WE look awesome. I love that you can hand craft UI ideas in the same style if needed. Just curious - do you use any drag & drop tool with it for prototyping?
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by spectramax on Friday January 24, 2020 @10:26PM (#22144435)
Genuinely curious - why would anyone prefer this over just blocky normal graphics?
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by osel on Saturday January 25, 2020 @12:41AM (#22144950)
I’ve found sketchy styles to be immensely useful in getting clients to focus on UX and structure rather than getting stuck on minor irrelevant details. My background is construction, and architects do the same thing with initial concepts.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by seanwilson on Saturday January 25, 2020 @06:14AM (#22145822)
Yep, it's super common that when you show a UX prototype to a client they'll hyperfocus on things you don't want them to focus on right now like the font choice or button colors. Making it look rough and muted can help.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by spectramax on Saturday January 25, 2020 @01:13AM (#22145038)
I never thought of it that way, that makes sense.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by blondin on Friday January 24, 2020 @06:04PM (#22143223)
this is super awesome! thanks for sharing
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by hirenj on Saturday January 25, 2020 @03:07AM (#22145337)
I’m using this in a scientific drawing tool that I put together - it was remarkably easy to integrate, and the sketch aesthetic is great for presentations or when you wish to convey uncertainty.

I’m still hanging out for a browser implementation of Fiziko (https://news.ycombinator.com/item?id=21651240) though, which would be a whole other cool aesthetic.

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by tauchunfall on Saturday January 25, 2020 @05:44AM (#22145754)
There is some code [0] for generation of coastal lines in cartographic maps (text in french, code in JavaScript). It's kind of similar.

The blog post [1] about fiziko describes how it calculates parallel bezier curves using line intersection and curves of varying thinkness. The code about the coastal lines also uses a similar technique and describes how to get the result step by step.

[0] https://observablehq.com/@linard-y/chemin-decale-offset-path... [1] https://habr.com/en/post/454376/

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by andreareina on Friday January 24, 2020 @11:27PM (#22144670)
Somewhat related: paper.css[1], a stylesheet for getting that rough look in your html components.

[1] https://www.getpapercss.com/

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by andrenotgiant on Friday January 24, 2020 @04:12PM (#22142514)
If you have another library that builds SVG charts or diagrams, Rough.js is really fun and usually very simple to include.

When combined with a handwritten font like humour sans[0] You can instantly turn a chart into something that looks more like an XKCD drawing.

No idea why, but I find the hand-drawn look is universally more engaging for charts and diagrams, causing people to actually pay attention and ask questions. It looks like some of the example links[1] need updating. But the WiredJS[2] site is a good demo of the look I am describing.

[0] https://github.com/shreyankg/xkcd-desktop/blob/master/Humor-...

[1] https://github.com/pshihn/rough/wiki/Examples

[2] https://wiredjs.com/

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by brandly on Friday January 24, 2020 @11:30PM (#22144691)
Excalidraw is built on top of this!

https://excalidraw.com/

Re:Rough.js v4.0 – hand-drawn, sketchy graphics by johnx123-up on Saturday January 25, 2020 @12:33AM (#22144919)
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by shihn on Saturday January 25, 2020 @01:17AM (#22145057)
RoughViz is awesome, and it also used RoughJS for rendering.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by golergka on Saturday January 25, 2020 @07:30AM (#22145993)
I've just been toying with an idea of a canvas-based game and wanted to use hand-drawn graphics style – and with this library, it looks like I can save money on the art and have animations for free, too! Thanks so much for posting this.
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by dang on Friday January 24, 2020 @02:59PM (#22141873)
Re:Rough.js v4.0 – hand-drawn, sketchy graphics by RobKohr on Sunday February 02, 2020 @04:23AM (#22216043)
It would be nice if I didn't have to have html elements for this, but instead it would be a js or css that you applied and all the normal elements would be automatically rendered in sketchy style.