0
我有一个函数,使范围从0到1的值简化。真实世界值是0到230和230到0如何用适当的“subdecimal转换“值并将输出转换回整数?时间也在功能外处理将整数值转换为功能的十进制值
x=0
timer=0 /milliseconds/
while x < 230
<convert x to something the function can use, probably distance/time?)
x=function(x)
<convert x back to the real world pixel value>
object.moveto(x,100)
end while
这种转换类型的正确术语是什么?
所以...你想将0转换为0和1转换为230? –