Geomerative & PGraphics [P5 2.0b6]
              in 
             Contributed Library Questions 
              •  
              11 months ago    
            
 
           
             Hi all,  
            
             
            
            
             
            
            
             
              
            
            
             
            
            
              any hint?
any hint? 
             
            
            
             
            
            
 
            
           
              basically I can't get the RFont.draw(char character, processing.core.PGraphics g) method to work with geomerative libray, see code below: 
            
            - import geomerative.*;
- RFont f;
- PGraphics pg;
- void setup() {
- size(600, 500);
- RG.init(this);
- background(255);
- pg = createGraphics(width, height, JAVA2D);
- fill(255, 0, 0);
- stroke(0, 255, 0);
- f = new RFont("FreeSans.ttf", 50, CENTER);
- pg.beginDraw();
- f.draw('e', pg);
- pg.endDraw();
- }
- void draw() {
- //background(255);
- image(pg, mouseX, mouseY);
- translate(width/2, height/2);
- f.draw('h'); // this works
- }
             I can only get this: 
            
            
             maybe I'm doing something wrong with the basics... :D
            
 
            
              
              1  
            
 
            
 
 
          