Better HN
topnewbestaskshowjobs
Log inSign up

MJSplot_author

104 karma · joined Dec 8, 2014 (11y ago) · 47 submissions

Submissions

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

33.

Show HN: MJSCountdown, Make simple shareable live event countdown pages(xqt2.com ↗)

1 points · by MJSplot_author · 11y ago · discuss

34.

Show HN: QuadTree with finite sized objects(xqt2.com ↗)

11 points · by MJSplot_author · 11y ago · 5 comments

35.

Show HN: MJSIO, Simple calculator input for the web(generalsarsby.github.io ↗)

1 points · by MJSplot_author · 11y ago · discuss

36.

Show HN: MJS Plot, interactive graphs for analysis and data exploration(generalsarsby.github.io ↗)

1 points · by MJSplot_author · 11y ago · discuss

37.

Show HN: MJSFontList – Find avaliable web fonts by hashing Canvas pixels(github.com ↗)

1 points · by MJSplot_author · 11y ago · discuss

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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

40.

Show HN: Mjslab: flexable clientside data analysis and plotting(xqt2.com ↗)

2 points · by MJSplot_author · 11y ago · discuss

41.

AsciiIcons (Replacing Photoshop with *)(xqt2.com ↗)

3 points · by MJSplot_author · 11y ago · discuss

comment 11y ago · link · parent

Thanks!

comment 11y ago · link · parent

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.

44.

Colour Picking by Simulation(xqt2.com ↗)

16 points · by MJSplot_author · 11y ago · 5 comments

45.

MJSplot: Interactive zoomable time-series graphs(lancaster.ac.uk ↗)

2 points · by MJSplot_author · 11y ago · discuss

comment 11y ago · link · parent

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

47.

MJSplot: Interactive graphs in your web browser(lancaster.ac.uk ↗)

9 points · by MJSplot_author · 11y ago · discuss

12