原来2D绘图也能绘出3D效果!
androlua吧
全部回复
仅看楼主
level 12
粘黏块◆ 楼主
RT.
2016年02月18日 06点02分 1
level 12
粘黏块◆ 楼主
2016年02月18日 06点02分 2
level 12
粘黏块◆ 楼主
2016年02月18日 06点02分 3
level 12
吊炸天。
颜色分配的适当,就像3d
2016年02月20日 04点02分 4
level 12
粘黏块◆ 楼主
半个月都没沉,我也是醉了[汗]
2016年03月04日 12点03分 6
level 11
求绘图代码
2016年03月08日 13点03分 7
代码弄丢了
2016年03月11日 11点03分
level 6
666
2016年04月02日 02点04分 8
level 10
代码代码!!
找到多少算多少!!
2016年07月19日 10点07分 9
level 12
粘黏块◆ 楼主
require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
import "android.graphics.*"
activity.setTitle('AndroLua')
paint=Paint()
paint.setARGB(100,0,250,0)
paint.setStrokeWidth(20)
paint.setTextSize(28)
sureface = SurfaceView(activity);
callback=SurfaceHolder_Callback{
surfaceChanged=function(holder,format,width,height)
end,
surfaceCreated=function(holder)
ca=holder.lockCanvas()
if (ca~=nil) then
ca.drawRGB(0,0,0);
for a=1,255 do
paint.setARGB(a,a+50,a+100,0)
ca.drawRect(a,a,a+100,a+90,paint)
end
end
holder.unlockCanvasAndPost(ca)
end,
surfaceDestroyed=function(holder)
end
}
holder=sureface.getHolder()
holder.addCallback(callback)
activity.setContentView(sureface)
@千万别321
@西游小子H火花
2016年07月31日 02点07分 10
2016年07月31日 02点07分
2016年07月31日 02点07分
多谢
2016年07月31日 10点07分
1