I understand you want to achieve a continuous increase or decrease in intensity using the Lamp block in Simulink. For this, you can utilize the concept of state ranges. By defining multiple states with slightly varying colors, you can simulate a gradual change in intensity.
You can programmatically set the state ranges and colors for the lamp block using this code.
lampStates = []
for i=0:9
st.Value = [i i+1];
st.Color = [0 0 i/10];
lampStates = [lampStates st];
end
set_param(gcs+"/Lamp1", "StateValueType", "Range")
set_param(gcs+"/Lamp1", "StateColors", lampStates)
You can also use a "Circulat Gauge" block in simulink as an alternative if you just want to visualize the values of a signal.

You can learn more about "Lamp" and "Circular gauge" block, by using this command in the MATLAB command window.
web(fullfile(docroot, 'simulink/slref/customlamp.html'))
web(fullfile(docroot, 'simulink/slref/circulargauge.html'))
Hope this helps!
