# Loading in svg : problem

**URL:** https://discourse.processing.org/t/loading-in-svg-problem/5224
**Category:** Coding Questions
**Created:** [November 5, 2018, 1:29pm UTC](https://discourse.processing.org/t/loading-in-svg-problem/5224 "2018-11-05T13:29:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Elrig23](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/elrig23/32/2225_2.png) [@Elrig23](https://discourse.processing.org/u/Elrig23)
#### Post date: [November 5, 2018, 1:29pm UTC](https://discourse.processing.org/t/loading-in-svg-problem/5224/1 "2018-11-05T13:29:50Z")

</div>

Hi there I am trying to import a vector using the load shape command, it’s a Dennis the menace top and it keeps loading in as black. I haven’t done any fills just a standard loadshape.

What could I do to fix this ?

---

<div class="post-metadata">

### Author: ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)
#### Post date: [November 5, 2018, 7:45pm UTC](https://discourse.processing.org/t/loading-in-svg-problem/5224/2 "2018-11-05T19:45:39Z")

</div>

It would help if we could see the code you are using and also the file you are using (or at least, a file with the same problem).

---

<div class="post-metadata">

### Author: ![mhmmadeel](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mhmmadeel](https://discourse.processing.org/u/mhmmadeel)
#### Post date: [November 5, 2018, 8:31pm UTC](https://discourse.processing.org/t/loading-in-svg-problem/5224/3 "2018-11-05T20:31:00Z")

</div>

Perhaps you could try entering something like this (where myShape is replaced with the name you’ve assigned it)  
Just insert the code before you actually display the shape in your draw function but make sure it has been declared in setup:

```auto
myShape.setFill(color(255));

```

This should help solve your problem, but if it does not here are some links to the Processing reference which should help!

[PShape function](https://processing.org/reference/PShape.html)  
[setFill for PShape](https://processing.org/reference/PShape_setFill_.html)
