User Tools

Site Tools


prpl:pixeltocell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
prpl:pixeltocell [2016/12/02 18:33] – external edit 127.0.0.1prpl:pixeltocell [2018/08/11 23:28] (current) – Title casing changed. GoodMorning
Line 1: Line 1:
 <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]] <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]
  
-=====  PIXELTOCELL  =====+=====  PixelToCell  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+PX PY X Y | [ float float float float ] |
  
  
 === Description === === Description ===
 +Converts pixel coordinates to cell coordinates. Cell coordinates are returned as floats. Pixel:Cell ratio is 4:1
 === Examples === === Examples ===
-<code> f2 = GetFloatFromStack(); //py  +<code> 
- f1 = GetFloatFromStack(); //px  +20 40 PixelToCell 
- stack.Push(new Data(x));  + 
- stack.Push(new Data(y)); +1 2 CellToPixel PixelToCell 
 + 
 +21.5 42.5 PixelToCell CellToPixel
    
 </code> </code>
  
prpl/pixeltocell.1480721634.txt.gz · Last modified: 2016/12/02 18:33 by 127.0.0.1