MJSplot_author
MJSplot_author on Hacker News
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.
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.
Posted by
MJSplot_author on Wednesday September 02, 2015 @03:35PM
from the show-hn dept.
Posted by
MJSplot_author on Wednesday September 02, 2015 @03:24PM
from the show-hn dept.
Posted by
MJSplot_author on Tuesday August 04, 2015 @01:25PM
from the show-hn dept.
Posted by
MJSplot_author on Thursday June 18, 2015 @09:54AM
from the show-hn dept.
Posted by
MJSplot_author on Tuesday June 16, 2015 @09:37AM
from the show-hn dept.
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.
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
Posted by
MJSplot_author on Wednesday May 13, 2015 @12:36PM
from the show-hn dept.
Posted by
MJSplot_author on Thursday April 16, 2015 @01:33PM
from the xqt2.com dept.
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.
Posted by
MJSplot_author on Monday March 16, 2015 @01:39PM
from the xqt2.com dept.
Posted by
MJSplot_author on Thursday March 12, 2015 @08:52AM
from the lancaster.ac.uk dept.
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
Posted by
MJSplot_author on Monday December 08, 2014 @12:47PM
from the lancaster.ac.uk dept.