# Light reflection

**URL:** <https://discourse.processing.org/t/light-reflection/33177>\
**Category:** Coding Questions\
**Created:** [October 30, 2021, 6:18pm UTC](https://discourse.processing.org/t/light-reflection/33177 "2021-10-30T18:18:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zack10](https://avatars.discourse-cdn.com/v4/letter/z/5e9695/32.png) [@zack10](https://discourse.processing.org/u/zack10)\
**Post date:** [October 30, 2021, 6:18pm UTC](https://discourse.processing.org/t/light-reflection/33177/1 "2021-10-30T18:18:41Z")

</div>

Hello i want to illuminate objects that are close to the sphere so when it’s dark i can see the object in the dark and also the objects which is close to it thank you

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 30, 2021, 6:28pm UTC](https://discourse.processing.org/t/light-reflection/33177/2 "2021-10-30T18:28:54Z")

</div>

Hi

Look at this link

[http://creative-co.de/better\_looking\_processing/](http://creative-co.de/better_looking_processing/)

> **[Reference](https://processing.org/reference/lights_.html)**
>
> Sets the default ambient light, directional light, falloff, and specular values. The defaults are ambientLight(128, 128, 128) and directionalLight(128, 128, 128, 0, 0, -1), lightFallo…

---

<div class="post-metadata">

**Author:** ![zack10](https://avatars.discourse-cdn.com/v4/letter/z/5e9695/32.png) [@zack10](https://discourse.processing.org/u/zack10)\
**Post date:** [October 30, 2021, 7:09pm UTC](https://discourse.processing.org/t/light-reflection/33177/3 "2021-10-30T19:09:51Z")

</div>

thank you it’s a little bit hard because i want to do a flash light effect but it’s not working with directionnal light

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 30, 2021, 9:48pm UTC](https://discourse.processing.org/t/light-reflection/33177/4 "2021-10-30T21:48:25Z")

</div>

Hello @zack10,

Take at look at this example:

> **[Spot / Examples](https://processing.org/examples/spot.html)**
>
> Move the mouse to change the position of a blue spot light.

I combined a couple of spotlights for this effect:

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/ba87ec9182f088e9201e872fcfaa382df9b9df6a.png)

Animated GIF:

![test.mov](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/ca7cdcb5624ed7250c3b0f90f178d5bd31af4f75.gif)

I did not experiment further… `pointLight()` seems promising.

`:)`
