Commit graph

34 commits

Author SHA1 Message Date
Dominick Pham
fdffdafca8 if the canvas element exists, call the draw method with the canvas_id as parameter, added a reset image button to undo the HSB sort 2010-05-08 15:24:47 -04:00
Dominick Pham
e1ca9115ea refactored some stuff, also took advantage of the native js sort function 2010-05-04 21:34:07 -04:00
Veno Server
b7d697f992 Begin work on not requiring an existing <canvas> element - create a new one off the viewport (visibility: hidden'd) for each new franz generated. Basic work on a draw() method that accepts an id for an existing <canvas> and will re-draw the image to that. This allows the library to remain pure with any image dealings, but gives the user control over redraw if they so desire it 2009-10-22 00:39:03 -05:00
Ryan McGrath
8e985309ff Some old stuff I had laying around in a work folder - massive refactoring ahoy 2009-10-20 17:56:09 -04:00
Veno Server
30e385c55f Minor sanity check fixes in functions - don't attempt to deep clone an object that might not exist, check for the existance of a native Array.swap before implementing our own, and properly check for jQuery support when displaying changes (ideally this'll be moved out anyway) 2009-10-02 02:16:49 -05:00
Veno Server
eebe7d1681 Started building a mini layout-color-switcher to test applying color formulas to a layout scheme. Ended up getting drawn away for an hour tracking down a bug for work, but I wanted to make sure this stuff was committed - I'll probably pick this up later tonight, provided I don't pass out or something. 2009-08-25 03:53:19 -05:00
Dominick Pham
cd9cd23727 added density function back in 2009-08-23 23:53:45 -04:00
Veno Server
e19f1c475c Added in methods to generate the hex code when a user clicks on one of the outputted boxes 2009-08-18 02:16:14 -05:00
Veno Server
cdc4218e3a Now that we've finished profiling the dev thread, we can safely make it the default view. Huzzah for more color data? 2009-08-18 01:38:25 -05:00
Dominick Pham
c872e9a031 frequency of values in a certain range - no loop arounds for cylindrical domain yet. Since we shouldn't expect a single hue, val, or sat to appear multiple times, we should really be looking at how often a range of them occur. There's probably a better solution for frequency probablity but this should work for now 2009-08-14 02:35:01 -04:00
Dominick Pham
e4a057b990 remove objects, speed up processing 2009-08-14 01:36:53 -04:00
Veno Server
b5d19780b2 Merge branch 'master' of git@github.com:ryanmcgrath/franz 2009-08-14 00:31:04 -05:00
Veno Server
fc553ae85b Fixing object error... 2009-08-14 00:30:52 -05:00
Dominick Pham
63b2fd8d16 Merge with Ryan, added log in bubblesort to show data inconsistencies
Conflicts:
	index.php
	js/franz.js
2009-08-14 01:17:49 -04:00
Dominick Pham
8351f9b6bf sort function with a few logs to show data inconsistency. 2009-08-14 01:13:43 -04:00
Veno Server
de6dca8afc Merge branch 'master' of git@github.com:ryanmcgrath/franz
Conflicts:
	js/franz.js
2009-08-13 23:54:40 -05:00
Veno Server
4fe6ed90ca Efforts to speed up application; initially ran around ~50ms on initial data loops, now runs in the ~30ms range. Doing division in JS over large loops == insane, I'm guessing because everything is floating point. Multiply by 0.5 instead and we get some nice speedups (odd, I know; best answer I can muster...). 2009-08-13 23:53:57 -05:00
Dominick Pham
c26fdfb105 different (hopefully better) sort function, cleaned up some stuff in the js 2009-08-14 00:39:35 -04:00
Veno Server
a467bca5e3 Incremental 2009-08-12 12:16:14 -05:00
Veno Server
6dd80339fb Merging with Dominicks most recent work... 2009-08-11 21:46:36 -05:00
Dominick Pham
5f11169ef1 Added the Saturation and Lightness transformation for HSL color scheme 2009-08-11 22:09:19 -04:00
Dominick Pham
3ab509a368 condensed the display method to be reusable - would really come in handy after I create the RGB to HSL transformation 2009-08-11 21:26:37 -04:00
Veno Server
f82d359803 Merge branch 'master' of git@github.com:ryanmcgrath/franz 2009-08-11 19:59:03 -05:00
Veno Server
33237be304 Removing rgb_obj - browser choked on too many nested objects. Such a shame. 2009-08-11 19:58:59 -05:00
Dominick Pham
de7059f52e Merge branch 'master' of github.com:ryanmcgrath/franz 2009-08-11 20:52:48 -04:00
Dominick Pham
fcf4cde51d made a clone when doing HSV sort so we retain the origin HSV data 2009-08-11 20:50:32 -04:00
Veno Server
a602d7d657 franz.rbg_obj returns an obj representing the rbga format... perhaps this would make arrays more sensible? 2009-08-11 19:39:11 -05:00
Veno Server
25a926abd5 Recursion on objects inside arrays was broken because of how I was referencing the clone method. Fixed... 2009-08-11 19:35:59 -05:00
Veno Server
5b5e236b38 Added franz.clone(), which copies full objects via recursion. Localized into franz because various libraries already modify the Object prototype, and it ends up causing conflicts. (This works for deep copying as well) 2009-08-11 19:29:44 -05:00
Dominick Pham
39b27c90e9 fixed sorting of HSV and made helper subroutines for them 2009-08-11 19:43:01 -04:00
Dominick Pham
9457630531 fixed sorting issues for the HSV domain, also made helper subroutine out of hue, sat, val 2009-08-11 19:37:07 -04:00
Ryan McGrath
74c0751819 Logging 2009-08-11 17:40:08 -04:00
Dominick Pham
905a03075c merging from my fork 2009-08-11 17:16:09 -04:00
Ryan McGrath
2fa4fb4414 Initial commit, working version 2009-08-10 21:58:13 -04:00