# GH_SamplingSphere class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_SamplingSphere
```

Represents a coloured sphere that can be sampled at various rotations.

## Constructors

- [GH_SamplingSphere](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-samplingsphere/ctor.md)

## Properties

- [SampleCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-samplingsphere/samplecount.md): Gets the total number of samples contained in this sampling grid.
- [Size](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-samplingsphere/size.md): Gets the size of this sample grid.

## Methods

- [SampleSphere](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-samplingsphere/samplesphere.md): (2 overloads) Sample a sphere with a UV texture and return a bitmap of sampled values.
