# Gradient definition file: C10waveform
# StrongED$Mode = Message
#
# This demonstrates using user variables to generate
# a simple sine-like wave form.
# Although this creates a greyscale palette, we use the
# rgb format to allow for changes to individual channels.
# The knot counts are stored in user(9) - doing this means
# less typing if you want to change them.
# The knot values alternate between 0.6 and 0.4, by setting
# them to either user(0) or user(1), using k% MOD 2.
# k% holds the number of the knot being processed.
# You could cycle between more values by adding user variables
# and changing the MOD value -- which itself could be a
# variable, of course.
# Try clicking Select on the contrast/brightness icon -- this
# varies the 'amplitude' of the wave.

# Next two lines are required:
gradient_version:1.00
format:rgb
description:A sine-like waveform. RGB but all channels identical so appears grey.
# We alternate between user(0) and user(1)
user0:0.6
user1:0.4

# Knot count
user9:10

# Number of knots...
knot_countr:user(9)
knot_countg:user(9)
knot_countb:user(9)
# ...and their values
knotsr:user(k% MOD 2)
knotsg:user(k% MOD 2)
knotsb:user(k% MOD 2)
