News for hackers. Stuff that matters.

MJSplot_author

Re:Show HN: QuadTree with finite sized objects on Wednesday September 02, 2015 @06:43PM (#10162400)
I wrote this for a small game I'm updating, which has about 30 objects colliding. However in my situation because it has so few objects the overhead is greater than the time saved. This system works really well when there are many objects.

See if you can use a regular quadTree if you can find a way to do it. It'll be faster than this.

I don't know about the _most_ efficient method. That is a field of research bigger than my weekend project.

Good luck.

Re:Show HN: QuadTree with finite sized objects on Wednesday September 02, 2015 @06:34PM (#10162360)
If anyone want to use it, I've put it out under the MIT License (available now in the updated source).

However I think most people will look at the ideas involved and implement it in there own way as I've made a few assumptions about the structure of the objects being put in the tree.

Re:HUSL – A human-friendly alternative to HSL on Sunday June 14, 2015 @08:28AM (#9714651)
I've added HUSL support to the "Colour Picking by Simulation" program.

http://xqt2.com/p/colours_sim_HUSL.html

You can toggle between normal HSL and HUSL. I find that the greens are too suppressed for my liking.

Re:Rust Playground on Sunday May 24, 2015 @03:00PM (#9597165)
I think I would be good. They are using the ace text editor, so something simple like:

on pageload: var t = localStorage.getItem("textbackup"); if (t){ __editor.setValue(t); console.log('restoring from backup'); } else { __editor.setValue(document.getElementById('basic_intro').innerHTML); console.log('putting in the intro'); }

and on any action: var text = __editor.getValue(); localStorage.setItem('textbackup', text);

It's the approach I've taken in my version a playground for a different program. http://xqt2.com/mjslab/mjslab.html

Re:Colour Picking by Simulation on Monday March 16, 2015 @06:07PM (#9214771)
Thanks!
Re:Colour Picking by Simulation on Monday March 16, 2015 @05:45PM (#9214621)
My original plan was to use results from this to pick colours for my other project (a graphing program). But I really just ended up with a toy that I found fun to play with. I probably could get a 3D version for HCL, that will be another weekend project.
Re:Tinychart – simple, ready-to-go charts on Friday February 13, 2015 @10:13AM (#9044692)
If I may propose my own solution [0]. It has no dependencies and is quite interactive for analysis (regression, measurements, and predictions). However not very customisable and lacks a good method for handling date/time data.

[0] http://www.lancaster.ac.uk/pg/sarsby/MJSplot/index