Skip to content

Commit

Permalink
add sample tranfercent color
Browse files Browse the repository at this point in the history
  • Loading branch information
tranleduy2000 committed Jun 17, 2017
1 parent 235b68c commit c832a7b
Show file tree
Hide file tree
Showing 289 changed files with 23 additions and 18,474 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.duy.pascal.compiler"
minSdkVersion rootProject.ext.minSdkVersion as Integer
targetSdkVersion rootProject.ext.targetSdkVersion as Integer
versionCode 101
versionName "4.0.1"
versionCode 102
versionName "4.0.2"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
30 changes: 21 additions & 9 deletions libCompiler/src/main/assets/code_sample/crt/color_argb.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@
Uses Crt;

var
generator : android_graphics_Color;
a, color : integer;
generator : android_graphics_Color;
a, color : integer;

Begin
for a := 0 to 25 do
begin
color := generator.argb(a, 0, 0, 255);
textBackground(color); //ARGB color
write(' ');
end;
ReadLn;
for a := 0 to 255 do
begin
color := generator.argb(a, 0, 0, 255);
textBackground(color); //ARGB color
write(' ');
end;
for a := 0 to 255 do
begin
color := generator.argb(a, 0, 255, 0);
textBackground(color); //ARGB color
write(' ');
end;
for a := 0 to 255 do
begin
color := generator.argb(a, 255, 0, 0);
textBackground(color); //ARGB color
write(' ');
end;
ReadLn;
End.
8 changes: 0 additions & 8 deletions sample/BlackJack-Pascal-master/README.md

This file was deleted.

Loading

0 comments on commit c832a7b

Please sign in to comment.