# Access each element in the broadcast operation

**URL:** https://discourse.julialang.org/t/access-each-element-in-the-broadcast-operation/108728
**Category:** New to Julia
**Tags:** images, broadcast
**Created:** [January 12, 2024, 2:20pm UTC](https://discourse.julialang.org/t/access-each-element-in-the-broadcast-operation/108728 "2024-01-12T14:20:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)
#### Post date: [January 12, 2024, 2:26pm UTC](https://discourse.julialang.org/t/access-each-element-in-the-broadcast-operation/108728/2 "2024-01-12T14:26:45Z")

</div>

Yes for example `pixel.r` is just a simpler way of writing `getproperty(pixel, :r)` (that’s what we call syntax sugar). So to broadcast this access to the `r` field you can write `getproperty.(pixel, :r)`.

(PS: see [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) for tips on how to format your code on this forum.)

---

_[View the full topic](https://discourse.julialang.org/t/access-each-element-in-the-broadcast-operation/108728)._
