Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Herwig

About

Username
Herwig
Joined
Visits
293
Last Active
Roles
Member
Posts
118

Comments

  • I also don't have coremidi experience, but I heard Jack has an easy API, handling both audio and midi (http://jackaudio.org/).
  • @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) end functi…
  • Thanks! Also works well with the new dependency feature...
  • Sure, go ahead!
  • 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
  • Just use my zoom library http://twolivesleft.com/Codea/Talk/discussion/550/zoom-library
    in Touch Zoom Comment by Herwig June 2012
  • I'm using Procreate and iDraw.
    in Tools? Comment by Herwig May 2012
  • 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&chdl=30|40|50|60"}     http.get("ht…
  • Nice! You could add some touch based editing of the break points...
  • @Bortels :-) brings back memories of the good old days with my ZX-81...
  • 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() …
    in SphereQuest! Comment by Herwig May 2012
  • 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 …
    in SphereQuest! Comment by Herwig May 2012
  • I use the two finger swipe (left to go a line down, right to go a line up).
  • Great! Thanks @John!
    in triangulate Comment by Herwig April 2012
  • @Simeon do you know if there is any progress on improving the triangulate function, returning indices as well?
    in triangulate Comment by Herwig April 2012
  • 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.
  • The Textastic app uses TextMate-compatible .tmbundle packages and .tmTheme files for syntax highlighting (and it supports objective C).
  • Isn't it that textSize should not exceed 2048 pixels (as I mentioned in my zoom library)?
  • Nice example! Could almost not stop touching the screen :-)
  • @Simeon @Zoyt Thanks guys!
  • 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          …
  • 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…
  • @Simeon do you mean custom sprite support or access to the photo library (or both)?
    in Images Comment by Herwig March 2012
  • @John any news on this?
    in triangulate Comment by Herwig March 2012
  • @Simeon thanks!
  • Well done!
    in Theremin Comment by Herwig March 2012
  • @Zoyt you are welcome! @Simeon thanks! (I overlooked that in the documentation) Did I also miss the product with a vec4 object?
  • ...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…
  • 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] -       …
  • @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 the beginning o…
  • 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 way! We…
  • 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!
  • @Zoyt if you bother to try it you will see the code comes with a main() and a setup() as an example app.
  • 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 it should). Have you …
  • @Maxiking16 wouldn't it be better to put that in the class, rather than in a global variable?
  • I implemented/ported base64 decoding PNG partly, but the strings are still long and tough to handle in Codea.
  • @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 the crashing to …
  • @Simeon Yes I used 'description' first. I'll have a look with iExplorer tomorrow...
  • @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…
  • @Simeon When pasting the copied source in a newly created project, didn't you mention earlier something about automatically recreating the tabs as well?
  • 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 gesture. Cod…
  • 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.".
  • Thanks @Maxiking16. Why is there a = ElapsedTime in the button:touched() ?
  • @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 function with …
  • 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…
  • 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() …
  • @Zoyt - This is for your competition
  • 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…
  • 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…
  • Thanks @Simeon! I didn't know. If @DaveSapien publishes his code I will definitely have a look !