Discussions
Activity
Sign In
Herwig
Activity
Discussions
15
Comments
103
CoreMidi/OSC support
I also don't have coremidi experience, but I heard Jack has an easy API, handling both audio and midi (http://jackaudio.org/).
Comment by
Herwig
April 22
permalink
Zoom library
@Jmv38 put this in the main of a project called 'Zoom lib', and the code above in a separate tab. -- Use this function to perform your initial setup function setup() zoom = Zoom() end function touched(touch) zoom:touched(touch) e…
Comment by
Herwig
August 2012
permalink
Zoom library
Thanks! Also works well with the new dependency feature...
Comment by
Herwig
August 2012
permalink
A basic L-system Fractal Generator
Sure, go ahead!
Comment by
Herwig
July 2012
permalink
A basic L-system Fractal Generator
It shows this forum is not really working. I posted a more advanced version back in February: http://twolivesleft.com/Codea/Talk/discussion/705/l-system-drawing
Comment by
Herwig
July 2012
permalink
Touch Zoom
Just use my zoom library http://twolivesleft.com/Codea/Talk/discussion/550/zoom-library
Comment by
Herwig
June 2012
permalink
Tools?
I'm using Procreate and iDraw.
Comment by
Herwig
May 2012
permalink
Things you could do using http.get?
You can also use it with the google chart API: function setup() spriteMode(CORNER) grImg=nil local tbl={["method"]="POST", ["data"]="chs=320x400&cht=p&chd=t:32.787,50.82,100,42.623&…
Comment by
Herwig
May 2012
permalink
Voroni noise algorithm- breaking space up
Nice! You could add some touch based editing of the break points...
Comment by
Herwig
May 2012
permalink
Praise, and question about future releases
@Bortels :-) brings back memories of the good old days with my ZX-81...
Comment by
Herwig
May 2012
permalink
SphereQuest!
The example also uses my zoom3D library. --# Zoom3D -- Zoom3D library v1.1 -- Herwig Van Marck -- usage: --[[ function setup() -- zoom3d=Zoom3D(20,30,vec3(0,0,0)) end function touched(touch) zoom3d:touched(touch) end function draw() …
Comment by
Herwig
May 2012
permalink
SphereQuest!
You can easily implement a basic lighting by multiplying the color with the cosine of the angle between a light direction and the normal in a vertex. Add some ambient light and voila... --# Main -- 3D example -- Use this function to perform your …
Comment by
Herwig
May 2012
permalink
Newbie Questions
I use the two finger swipe (left to go a line down, right to go a line up).
Comment by
Herwig
May 2012
permalink
triangulate
Great! Thanks @John!
Comment by
Herwig
April 2012
permalink
triangulate
@Simeon do you know if there is any progress on improving the triangulate function, returning indices as well?
Comment by
Herwig
April 2012
permalink
saveProjectInfo() and saveProjectData()
With SaveProjectInfo you can as far as I know set only metadata like 'Description' and 'Author', so I guess the main difference is the scope.
Comment by
Herwig
April 2012
permalink
Syntax highlighting? (for the creator or those who know!)
The Textastic app uses TextMate-compatible .tmbundle packages and .tmTheme files for syntax highlighting (and it supports objective C).
Comment by
Herwig
April 2012
permalink
ScrollBox, a class for scrolling text
Isn't it that textSize should not exceed 2048 pixels (as I mentioned in my zoom library)?
Comment by
Herwig
April 2012
permalink
Quadtree example
Nice example! Could almost not stop touching the screen :-)
Comment by
Herwig
April 2012
permalink
Zoom library
@Simeon @Zoyt Thanks guys!
Comment by
Herwig
April 2012
permalink
Langton's Ant
Very nice! A couple of suggestions: - use noSmooth() before the sprite command - draw the board on the neighbouring screens as well (so you can pan and zoom on the corners of the screen as well) for i=-1,1 do for j=-1,1 do …
Comment by
Herwig
March 2012
permalink
Zoom library
Updated version, which also saves the last viewpoint: -- Zoom library v1.2 -- Herwig Van Marck -- usage: --[[ function setup() zoom=Zoom(WIDTH/2,HEIGHT/2) end function touched(touch) zoom:touched(touch) end function draw() zoom:draw() e…
Comment by
Herwig
March 2012
permalink
Images
@Simeon do you mean custom sprite support or access to the photo library (or both)?
Comment by
Herwig
March 2012
permalink
triangulate
@John any news on this?
Comment by
Herwig
March 2012
permalink
3D zoom library
@Simeon thanks!
Comment by
Herwig
March 2012
permalink
Theremin
Well done!
Comment by
Herwig
March 2012
permalink
3D zoom library
@Zoyt you are welcome! @Simeon thanks! (I overlooked that in the documentation) Did I also miss the product with a vec4 object?
Comment by
Herwig
March 2012
permalink
3D zoom library
...and finally the library itself. In this example it also uses the FieldOfView parameter. -- Zoom3D library v1.0 -- Herwig Van Marck -- usage: --[[ function setup() -- zoom3d=Zoom3D(20,30,vec3(0,0,0)) end function touched(touch) zoom3…
Comment by
Herwig
March 2012
permalink
3D zoom library
Plus the neede matrix inversion (should really be part of Codea, as well as vec4 matrix multiplication) -- Matrix invert function invert(m) local inv=matrix() local invOut=matrix() inv[1] = m[6] * m[11] * m[16] - …
Comment by
Herwig
March 2012
permalink
Dark theme is not available after inactivated [resolved]
@Simeon now that you have the app store version, were you able to recreate my crash (when using the four finger swipe while in the project overview? BTW: I'm actually using that 'feature' to quickly close Codea when I need to get to …
Comment by
Herwig
March 2012
permalink
A Windowing System for Codea
Thanks @Nat! I wasn't aware the order of the tabs was important in the inheritance of classes. It probably means you can redefine a class after it has been used to inherit from, which opens up some interesting avenues... Great class by the wa…
Comment by
Herwig
March 2012
permalink
Codea 1.3.1 is approved!
I noticed it too when keeping the delete pressed to delete a bunch of stuff, and it suddenly started deleting stuff at the end of the file!
Comment by
Herwig
March 2012
permalink
A Windowing System for Codea
@Zoyt if you bother to try it you will see the code comes with a main() and a setup() as an example app.
Comment by
Herwig
March 2012
permalink
A Windowing System for Codea
When I run it I get an error error: [string "Screen = class()..."]:19: attempt to call method 'layout' (a nil value) It looks like the Screen class is not able to get at the layout function defined by the widget class (which i…
Comment by
Herwig
March 2012
permalink
button class
@Maxiking16 wouldn't it be better to put that in the class, rather than in a global variable?
Comment by
Herwig
February 2012
permalink
Images to/from strings
I implemented/ported base64 decoding PNG partly, but the strings are still long and tough to handle in Codea.
Comment by
Herwig
February 2012
permalink
Codea 1.3.1 is approved!
@Simeon I replicated the problem on my iPad 1. I had an almost clean install on it. All I had to do to get it crashing was to add a saveProjectInfo to a new project with the correct "Description" key, and run it once. I couldn't get t…
Comment by
Herwig
February 2012
permalink
Codea 1.3.1 is approved!
@Simeon Yes I used 'description' first. I'll have a look with iExplorer tomorrow...
Comment by
Herwig
February 2012
permalink
Codea 1.3.1 is approved!
@Simeon yes it happens all the time. All I have to do is start Codea, go in a project, go back to the menu and do the four finger sweep (or the double tap home button). Could it be related to the use of saveProjectInfo ? I used it on a couple of pro…
Comment by
Herwig
February 2012
permalink
Codea 1.3.1 is approved!
@Simeon When pasting the copied source in a newly created project, didn't you mention earlier something about automatically recreating the tabs as well?
Comment by
Herwig
February 2012
permalink
Codea 1.3.1 is approved!
There seems to be an issue when backgrounding the app. When using the 4 tap sweep up gesture, Codea crashes :-( I tried restarting the iPad, and limiting to running a new 'Hello World' program, get out to the main menu, and perform the ge…
Comment by
Herwig
February 2012
permalink
Codea 1.3.1 is approved!
Nice! One small error in the manual entry for saveProjectInfo though. It states "... with 'description' as the key." instead of "... with 'Description' as the key.".
Comment by
Herwig
February 2012
permalink
button class
Thanks @Maxiking16. Why is there a = ElapsedTime in the button:touched() ?
Comment by
Herwig
February 2012
permalink
L-System drawing
@CrazyEd I took most of my examples from http://www.nahee.com/spanky/www/fractint/lsys/tutor.html To update the examples first change the parameter line in the setup() with iparameter("example",1,15,15) and update the initExample funct…
Comment by
Herwig
February 2012
permalink
L-System drawing
Zoom class -- Zoom library v1.1 -- Herwig Van Marck -- usage: --[[ function setup() zoom=Zoom(WIDTH/2,HEIGHT/2) end function touched(touch) zoom:touched(touch) end function draw() zoom:draw() end ]]-- Zoom = class() function Zoom:init…
Comment by
Herwig
February 2012
permalink
L-System drawing
L-System class LSystem = class() function LSystem:init(name,maxlevel,start,steps,rules) self.name = name self.maxlevel = maxlevel self.level = 1 self.str = start self.steps = steps self.rules = rules self:updateCount() …
Comment by
Herwig
February 2012
permalink
Zoom library
@Zoyt - This is for your competition
Comment by
Herwig
February 2012
permalink
Physics based Wordcloud
Thanks @Simeon! The bounding box of each letter is calculated (using setContext(img) ) and then concatenated into a physics body of type polygon. If you set showOutlines to 1 you can see the actual polygons. I had to dial down the gravity a bit, ot…
Comment by
Herwig
February 2012
permalink
Physics based Wordcloud
Wordcloud class: WordCloud = class() function WordCloud:init(tbl) self.words = {} self.touchMap = {} self.strs = {} self.sizes = {} self.x = 5 self.y = 5 self.maxy = 0 self.done = nil for str,sz in pairs(tbl) do…
Comment by
Herwig
February 2012
permalink
Physical Brush
Thanks @Simeon! I didn't know. If @DaveSapien publishes his code I will definitely have a look !
Comment by
Herwig
February 2012
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
Herwig
Joined
January 2012
Visits
259
Last Active
May 16
Roles
Member
Posts
118
Two Lives Left on Twitter
Two Lives Left on Facebook
Codea Wiki
Codea Development on Twitter
Powered by Vanilla