::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : سه شنبه 10 آذر 1405 - 4:27 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
oisrex آفلاین



ارسال‌هاAsnwers : 747
عضویتRegistration date : 4 /8 /1393
حمایت کردهthanks : 231
حمایت شدهThanked : 886
پاسخAnswer 1 : ایجاد متن بر روی دیسکو

سلام

کد:
<!DOCTYPE html>

<html>

<head>

<title>Title</title>

<style>

html,body{

background: #000;

overflow-x: hidden;

overflow-y: hidden;

}

</style>

</head>

<body>

<canvas id="mycan"></canvas>

<script>

// Animation By Ehsan Gomnam

// CopyRight By Monister.ir

// All Rights Reserved.

function make_color(){

var colors = '0123456789ABCEDF'.split(''),

colorready='';

for(i=0;i<6;i++){

colorready+= colors[parseInt(Math.random()*16)]

}

return '#'+colorready;

}

var can=document.getElementById('mycan'),

ctx = can.getContext('2d');

can.width=window.innerWidth;

can.height=window.innerHeight;

function anim(){

var rands = {

x:Math.floor(Math.random()*window.innerWidth),

y:Math.floor(Math.random()*window.innerHeight)

}

ctx.beginPath();

ctx.fillStyle='rgba(0,0,0,.1)';

ctx.fillRect(0,0,can.width,can.height);

ctx.beginPath()

ctx.font="Bold 60px Arial";

ctx.fillStyle="white";

ctx.fillText("سلام",300,310);

ctx.moveTo(10,500,rands.y-Math.floor(Math.random()*200))

ctx.lineTo(rands.x,rands.y);

ctx.strokeStyle=make_color()

ctx.lineWidth = Math.floor(Math.random()*10)

ctx.stroke();

}

setInterval(anim,10)

</script>

</body>

</html>


سه شنبه 05 اسفند 1393 - 22:14
وب کاربرUser's blog ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks
حمایت شده حمایت شده: سپاس هاThanks (1) : attacker -



moisrex
درباره ماAbout us لینک های ماOur links کلمات کلیدیKeywords
انجمن تخصصی کدستان ، ساخته شده توسط فردی با نام مستعار Moisrex می باشد.This forum designed by a person who called Moisrex.

ایمیلE-mail : Moisrex @ Gmail.com
کدستان,انجمن کدستان,کدنویسی,انجمن پشتیبانی,فروم,رزبلاگ,آموزش کدنویسی,درخواست کد
تمامی حقوق این انجمن مربوط به همین انجمن می باشد | طراحی قالبCopyright (c) By Moisrex , All rights reserved | Desiger : Moisrex