# Geomerative: controlling caps and joins appearances

**URL:** https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910
**Category:** Libraries
**Created:** [July 29, 2020, 5:08pm UTC](https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910 "2020-07-29T17:08:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Eamoex](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@Eamoex](https://discourse.processing.org/u/Eamoex)
#### Post date: [July 29, 2020, 5:08pm UTC](https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910/1 "2020-07-29T17:08:54Z")

</div>

Hello Everyone,

I am trying to learn how to use Geomerative to achieve a specific effect. I want to map/grow an SVG path according to a unit value (0.0 - 1.0). This code works well, but I can’t change the style of the caps and joins for the path. Methods `setStrokeCap()` and `setStrokeJoin()` don’t return any error, but they don’t change the appearance of the ends and corners either.

SVG used in this test [is available here](http://www.emyamstein.ch/private/draw_1.svg).

Anyone good with Geomerative who could help me?

```auto
import geomerative.*;

RShape shp;

int first = 0;

void setup(){
  size(600, 600);
  smooth();

  // VERY IMPORTANT: Allways initialize the library before using it
  RG.init(this);
  color clr = color(255, 255, 255);
  shp = RG.loadShape("draw_1.svg");
  shp = RG.centerIn(shp, g, 100);
  shp.setStroke(clr);
  shp.setStrokeWeight(20.0);
  shp.setStrokeJoin("ROUND");
  shp.setStrokeCap("ROUND");
  shp.setAlpha(127);
  shp.setFill(false);
}

void draw(){
  translate(width/2, height/2);
  background(#2D4D83);

  noFill();
  stroke(255, 200);
  float splitPos = map(mouseX, 0, width, 0, 1);
  
  RShape[] splitShapes = RG.split(shp, splitPos);
  
  RG.shape(splitShapes[first]);
}

```
