**** BEGIN LOGGING AT Tue Aug 12 02:59:58 2014 Aug 12 04:03:57 Well, I'm throwing in the towel for tonight Aug 12 04:04:03 I'll work on this more tomorrow night Aug 12 13:44:39 hey dmanderson, you there? Aug 12 15:20:03 morning Aug 12 15:22:04 morning Aug 12 15:31:10 morning Aug 12 15:31:36 dmanderson: So I looked into the 120Hz 47" WebOS TV that I had been considering Aug 12 15:31:42 and it only has 28ms input lag Aug 12 15:31:49 so it should be good for gaming :) Aug 12 15:33:00 Morning. Aug 12 15:34:36 nice GodGinrai! Aug 12 15:34:47 morning Roy__! Aug 12 17:00:13 arabot? Aug 12 17:00:22 Someone is trying to write a JS IRC bot? Aug 12 17:35:00 maybe Aug 12 17:45:08 Is there a good explanation of how the canvas transforms work anywhere? Aug 12 17:45:21 I was having some troubles rotating a sprite last night Aug 12 17:45:33 and wanted to get a better idea of what I was doing wrong Aug 12 17:55:53 hey Zectbumo Aug 12 17:56:07 GodGinrai: hey there. I was just going to ask you about your project. Aug 12 17:56:28 the canvas thing? Aug 12 17:56:31 yes Aug 12 17:57:13 Hmm good question GodGinrai Aug 12 17:57:13 I've got a test page I made where I build a floorTile, create a pattern from it, and use the pattern to draw the floor w/ fillRect Aug 12 17:57:25 What kind of transform were you trying to do? Aug 12 17:57:36 dmanderson: translate and rotate Aug 12 17:57:48 I have a 24x16 wall tile Aug 12 17:57:58 and I need to rotate it to be used for the other walls Aug 12 17:58:32 I’ve been scaling negatively for translation Aug 12 17:58:32 so I'm just trying to rotate it and save each rotation as a tile so that I don't have to do the rotations while stamping out the tiles Aug 12 17:58:47 is this for the Enyo canvas sample? Aug 12 17:59:05 -1, -1 to flip horizontally and vertically Aug 12 17:59:43 Zectbumo: I'm learning base canvas before applying this to Enyo Aug 12 18:00:27 dmanderson: so, instead of doing translate and rotate.... I would do scale(1,-1) etc? Aug 12 18:02:03 Does that change the coord system at all like translate and rotate do? Aug 12 18:02:19 oh I see, rotate 180º would be scale(-1, -1), but you don't get rotate 90º Aug 12 18:02:57 oh you're right Aug 12 18:03:08 90º is a flip Aug 12 18:03:15 so this doesn't help to solve my problem :\ Aug 12 18:04:41 what's weird is that on my 24x24 tiles, I didn't have any problem rotating and translating the image to the right place Aug 12 18:05:10 but on my 24x16 tiles, it just doesn't play nice Aug 12 18:05:28 because it's not square? Aug 12 18:06:09 Zectbumo: yea, but that should not be a problem as long as I use a square canvas and then crop the canvas after the transformations Aug 12 18:11:47 Ah, I see, yeah I guess that wont help… Aug 12 18:54:57 How do I get to the documentation in the API viewer for enyo.bind? Aug 12 18:55:25 index Aug 12 18:55:31 scroll to the E section Aug 12 18:55:59 ah cool Aug 12 18:57:13 Yeah the current docs are a bit loose Aug 12 18:57:51 dmanderson: Because the current docs starts in Kind view, people don't think to check the other tabs Aug 12 18:58:24 I did look, but I was looking in the B section (for bind). Aug 12 18:59:26 we could fix the index by just making one section E and put everything under it, then I probably would have found bind. ;) Aug 12 19:02:32 everything on the enyo object is under E Aug 12 19:02:57 honestly tho', the API needs a section w/ the separate objects and their methods (enyo, onyx, etc.) Aug 12 19:03:03 GodGinrai: I meant only have 1 section, E. (joke since everything is under enyo.) Aug 12 19:03:15 onyx kinds are under onyx Aug 12 19:03:23 which is O Aug 12 19:03:39 k, three sections, E, O, M Aug 12 19:04:03 in other words, like I said, just have a section w/ the objects Aug 12 19:04:09 no but the automated documentation program should pull out all functions and put them in their appropriate section. B is for bind Aug 12 19:08:56 it seems like it's very object oriented and puts methods under the correct sections, but when it comes to a function, it falls apart. Aug 12 19:12:24 Where is a good place to put constants if it's used by a Kind? Global feels wrong. Aug 12 19:23:03 constants as in? Aug 12 19:23:50 like const? Aug 12 19:25:18 like if I wanted to enumerate TOP = 1, BOTTOM = 2 Aug 12 19:27:45 there isn't really a convention Aug 12 19:28:17 you could use an object that you call "constants Aug 12 19:28:21 in your Kind Aug 12 19:28:24 like: Aug 12 19:28:29 constants: { Aug 12 19:28:32 TOP: 1, Aug 12 19:28:37 BOTTOM: 2 Aug 12 19:28:39 } Aug 12 19:29:01 would that be created every time the object is instantiated? Aug 12 19:29:06 then you would refer to it w/ this.constants.TOP and this.constants.BOTTOM Aug 12 19:29:12 Zectbumo: yes Aug 12 19:29:16 hmm Aug 12 19:29:34 but if you put it in statics, it would be created on the constructor Aug 12 19:30:05 so it would be only once Aug 12 19:30:25 dmanderson can tell you more about the statics block, I'm sure. (there's also a protectedStatics block) Aug 12 19:30:27 could he not also put it on the prototype? Aug 12 19:31:24 I can't find documentation on how statics work Aug 12 19:31:24 chall: if he puts it on the prototype, then it gets instantiated with each object Aug 12 19:31:51 Zectbumo: statics aren't very well-documented, hence why I suggested talking to dmanderson. Aug 12 19:32:00 this is the only place that really talks about it: http://enyojs.com/docs/2.4.0/key-concepts/kinds.html Aug 12 19:32:21 as far as I'm aware, putting it on the prototype creates a reference unless you set it manually Aug 12 19:32:33 cool, I'll try statics Aug 12 19:32:59 I’m prob not the best at answering a statics question. :) I need to bug more engineers to join the IRC I see Aug 12 19:50:54 wow, I'm cheking out the canvas API, it has clipping. that would make for some cool effects and drawing techniques Aug 12 19:52:17 garbage collection ruins everything. You can see the garbage collection in this animation http://joshondesign.com/p/books/canvasdeepdive/chapter04.html Aug 12 19:52:47 http://joshondesign.com/p/books/canvasdeepdive/examples/snowsim.html Aug 12 19:55:59 Yeah clipping is also great for performance Aug 12 20:29:08 statics (in 2.3 and <) used to just be a property you could put on a kind and anything in it could be used by anything at all as KindName.statics.whateverProperty Aug 12 20:29:32 not sure the current case in 2.4 + Aug 12 22:01:05 @sugardave Statics haven't changes AFAIK. Aug 12 23:01:31 I'm having trouble finding enyo.Canvas in the source code. I try to create it and it says it's not a valid kind. Aug 12 23:01:44 I have Enyo 2.4.0 I thought Aug 12 23:03:22 also doesn't work with the git clone method Aug 12 23:58:02 Zectbumo it's a separate lib Aug 13 00:19:06 now it's working, thanks dmanderson Aug 13 00:19:20 np! **** ENDING LOGGING AT Wed Aug 13 02:59:58 2014